You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kubernetes credentials can only be refreshed once per Kubernetes API object, and can eventually expire, leading to Unauthorized errors from the Kubernetes API
#2867
Closed
adamnovak opened this issue
Nov 18, 2019
· 0 comments
· Fixed by #2869
The Kubernetes module establishes some credentials at startup but never refreshes them during the life of the program.
When the credentials expire, (and we start getting 401 Unauthorized-s), we need to call load_kube_config() again (if that's how we got our credentials) and replace all the API clients.
Alternately, we could re-load the config and re-make the client at every use of Kubernetes, or just reload the config "sufficiently often" and remake the clients on every use, or something.
@glennhickey is seeing problems due to this (I think) on our Kubernetes cluster after an hour.
A workaround is running with service account credentials, which don't expire.
┆Issue is synchronized with this Jira Task
┆Issue Number: TOIL-460
The text was updated successfully, but these errors were encountered:
See kubernetes-client/python#741
The Kubernetes module establishes some credentials at startup but never refreshes them during the life of the program.
When the credentials expire, (and we start getting
401 Unauthorized
-s), we need to callload_kube_config()
again (if that's how we got our credentials) and replace all the API clients.Alternately, we could re-load the config and re-make the client at every use of Kubernetes, or just reload the config "sufficiently often" and remake the clients on every use, or something.
@glennhickey is seeing problems due to this (I think) on our Kubernetes cluster after an hour.
A workaround is running with service account credentials, which don't expire.
┆Issue is synchronized with this Jira Task
┆Issue Number: TOIL-460
The text was updated successfully, but these errors were encountered: