You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
In order to connect a kubernetes node with a cloud provider instance the best way is to take advantage of instance.id.
This information can be derived from kubernetes nodes labels and spec in case of aws and gcp cloud providers.
AWS: From kubernetes node spec there is the providerId in the form of
providerID: aws:///us-east-2b/i-0699b78f46f0fa248
Last part of this url is the EC2 instance id.
GCP: The providerID does not help much there as it is the form of gce://elastic-observability/us-central1-c/gke-michaliskatsoulis-te-default-pool-41126842-55kg.
But all GKE nodes have an annotation like container.googleapis.com/instance_id: 5445971517456914360 which does the job.
In all cases the ECS field cloud.instance.id will be populated if the node is running in one of those CSPs.
But all GKE nodes have an annotation like container.googleapis.com/instance_id: 5445971517456914360 which does the job.
I don't think this would work for GKE Autopilot. From a first quick look, it looks like the underlying Instance Groups are not accessible. Looks like we have a similar case to AWS EKS Fargate
I don't think this would work for GKE Autopilot. From a first quick look, it looks like the underlying Instance Groups are not accessible. Looks like we have a similar case to AWS EKS Fargate
In order to connect a kubernetes node with a cloud provider instance the best way is to take advantage of instance.id.
This information can be derived from kubernetes nodes labels and spec in case of aws and gcp cloud providers.
providerId
in the form ofLast part of this url is the EC2 instance id.
gce://elastic-observability/us-central1-c/gke-michaliskatsoulis-te-default-pool-41126842-55kg
.But all GKE nodes have an annotation like
container.googleapis.com/instance_id: 5445971517456914360
which does the job.In all cases the ECS field
cloud.instance.id
will be populated if the node is running in one of those CSPs.This issue is tightly coupled with #146
The text was updated successfully, but these errors were encountered: