-
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
Kubernetes api server metrics: reload bearer token to avoid failing on stale token #10604
Kubernetes api server metrics: reload bearer token to avoid failing on stale token #10604
Comments
Seeing this issue on our side as well when running the agent on EKS 1.21 |
found another one:
seems like that's in the go code somewhere too |
I also had this issue in EKS 1.21. Restarting the daemon set seems to have resolved it for now. |
restarting should only resolve it for 1h |
@grosser It's been 2 hours and the issue hasn't come back. The issue I had was what you mentioned in your follow up comment. I don't think I had the same thing as your original post about the bearer token. |
We're seeing this in EKS 1.21 as well -- I believe the BoundServiceAccountTokenVolume feature went into beta in 1.21 and has it enabled by default in 1.21: https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/ |
Same here, seeing this on EKS 1.21, this also seems to cause log collection failure for us. Is there a workaround for the issue, except for restarting the daemonset each hour? UPD: I'm seeing the same behavior in EKS 1.21 - the token TTL is 1yr, so it's not that critical until transition period ends kubernetes/kubernetes#105654 |
Describe what happened:
our logs show that dd agent uses an outdated service account token
Describe what you expected:
the agent should reload it's bearer token <every 10min or when it expires
Steps to reproduce the issue:
Deploy agent into a cluster that has BoundServiceAccountTokenVolume=true (new default in 1.22+) and make it scrape the kubernetes api server
Additional environment details (Operating System, Cloud provider, etc):
Agent/7.32.3
The text was updated successfully, but these errors were encountered: