-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[receiver/awscontainerinsight] Gather instance metadata parameters from Kubernetes API when EC2 instance metadata is not accessible #31511
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
Component(s)
receiver/awscontainerinsight
Is your feature request related to a problem? Please describe.
AWS Container Insights receiver requires access to the EC2 instance metadata endpoint to get instance ID, instance type, and instance IP address.
AWS recommends to block access to EC2 instance metadata when using IRSA.
When the access is restricted,
aws-otel-collector
pods are refusing to send metrics to CloudWatch:Describe the solution you'd like
It is possible to fetch the needed metadata from Kubernetes API by making a single call to describe the node, where the pod from
aws-otel-collector
deamonset is running (the node name is already provided via an environment variable):node.kubernetes.io/instance-type
Describe alternatives you've considered
The workaround is to increase the network hop limit for IMDS endpoint to 2, which allows IMDS access for all pods in the cluster.
Additional context
No response
The text was updated successfully, but these errors were encountered: