Skip to content
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

cannot get pod from kubelet, err: call to /pods endpoint failed: #160

Open
reddyvishnu01 opened this issue Mar 14, 2024 · 0 comments
Open

Comments

@reddyvishnu01
Copy link

reddyvishnu01 commented Mar 14, 2024

Seeing below Error when trying to deploy latest cloudwatch-agent (1.3xxx) in aws eks version 1.27 and 1.28 with IMDSv2 enabled.
Cloudwatch agent 1.2xx was working as expected with similar AWS EKS Configuration.

2024-03-14T17:43:45Z I! {"caller":"[email protected]/service.go:143","msg":"Starting CWAgent...","Version":"1.300034.0b498","NumCPU":8}
2024-03-14T17:43:45Z I! {"caller":"extensions/extensions.go:34","msg":"Starting extensions..."}
2024-03-14T17:43:45Z I! {"caller":"extensions/extensions.go:37","msg":"Extension is starting...","kind":"extension","name":"agenthealth/logs"}
2024-03-14T17:43:45Z I! {"caller":"extensions/extensions.go:45","msg":"Extension started.","kind":"extension","name":"agenthealth/logs"}
2024-03-14T17:43:45Z I! {"caller":"host/ec2metadata.go:78","msg":"Fetch instance id and type from ec2 metadata","kind":"receiver","name":"awscontainerinsightreceiver","data_type":"metrics"}
2024-03-14T17:43:45Z I! {"caller":"[email protected]/service.go:178","msg":"Starting shutdown..."}
2024-03-14T17:43:45Z I! {"caller":"extensions/extensions.go:52","msg":"Stopping extensions..."}
2024-03-14T17:43:45Z I! {"caller":"[email protected]/service.go:192","msg":"Shutdown complete."}
Error: cannot start pipelines: cannot get pod from kubelet, err: call to /pods endpoint failed: Get "https://x.x.x.x:y/pods": Forbidden
2024-03-14T17:43:45Z E! [telegraf] Error running agent: cannot start pipelines: cannot get pod from kubelet, err: call to /pods endpoint failed: Get "https://x.x.x.x:yyy/pods": Forbidden

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant