-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Agent cannot connect to kubelet #6621
Comments
I have the same issue |
I have the same issue |
@assinnata @nmadmon I'm being told by DD support that this likely related to permissions, which I thought but didn't have a good way to test. I'll be testing that out today and if that ends up bring the case then I'll let you folks know. |
@Gowiem , did you succeed to find the root cause? |
@nmadmon @assinnata I did. It did end up being a RBAC permissions issue. Here are the notes from DD support that helped me figure that out:
Good luck with it! |
"Unable to detect the kubelet URL automatically: impossible to reach Kubelet with host: 172.31.33.128. Please check if your setup requires kubelet_tls_verify = false. Activate debug logs to see all attempts made" i am getting this error |
Output of the info page (if this is a bug)
Describe what happened:
I'm trying to run DataDog as a sidecar on my EKS Fargate Nodes/Pods, but I'm continuing to get the seemingly common "cannot connect to kubelet" like errors - this is the latest iteration:
The important bit and the one that continues to repeat itself is
Get \\\"http://:10255/pods\\\": dial tcp :10255: connect: connection refused
.I followed this tutorial and the documentation to get this setup, but there is very little documentation on EKS + Fargate.
This is a similar issue to datadog/integrations#2582 && datadog/datadog-agent#2582 (and a bunch of others).
It is worth noting that I do have the datadog agent running successfully on my normal EKS worker nodes, but I have yet to have any success with Fargate. Would appreciate a pointer in the right direction or what I can do to further debug this. For example, I believe I have RBAC setup correctly (yaml below), but how can I test that? Thanks!
Describe what you expected:
I expected the pod to run without errors and be able to reach the kubelet.
Steps to reproduce the issue:
Here is my datadog agent sidecar helm template:
The underlying app's service account has the following RBAC permissions bound to it and the service account directory is mount:
Additional environment details (Operating System, Cloud provider, etc):
Kubernetes Version: 1.17
EKS Platform: eks.3
The text was updated successfully, but these errors were encountered: