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

Re-authenticate kubernetes client #372

Open
juliusmh opened this issue Nov 11, 2024 · 0 comments
Open

Re-authenticate kubernetes client #372

juliusmh opened this issue Nov 11, 2024 · 0 comments

Comments

@juliusmh
Copy link

juliusmh commented Nov 11, 2024

When the service account token for a pod changes, the k8s in-cluster configuration is not updated. I suggest to either periodically reload the file or watch the file for changes.

Incluster config loading: https://github.com/kubernetes-client/python/blob/master/kubernetes/base/config/incluster_config.py#L112

This appears in logs as

ApiException when calling kubernetes: (401)
Reason: Unauthorized
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