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 · 1 comment
Open

Re-authenticate kubernetes client #372

juliusmh opened this issue Nov 11, 2024 · 1 comment
Labels
stale close issues and PRs after 60 days of inactivity

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
Copy link

This issue has been automatically marked as stale because it has not had any activity in the last 60 days. Thank you for your contributions.

@github-actions github-actions bot added the stale close issues and PRs after 60 days of inactivity label Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale close issues and PRs after 60 days of inactivity
Projects
None yet
Development

No branches or pull requests

1 participant