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_asyncio.py has some support for refreshing tokens but I believe it's only relevant to GCP tokens, not k8s service account tokens (#26).
I have to admit I don't understand the nuances of how code is generated or customized in either project but I believe the main difference is in config/kube_config.pyKubeConfigLoader._set_config
Thank you for working on this project, I appreciate using
kubernetes_asyncio.py
.When using Python to talk to the Kubernetes API from within a Pod/container,
kubernetes.py
will periodically refresh/reload the service account token it is using, per kubernetes-client/python#741 (closed by kubernetes-client/python-base#250). Their original use case was for short-lived IAM credentials, but the issue is in focus again with warnings coming up in the Amazon EKS 1.21 and 1.22 release notes (https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html).kubernetes_asyncio.py
has some support for refreshing tokens but I believe it's only relevant to GCP tokens, not k8s service account tokens (#26).I have to admit I don't understand the nuances of how code is generated or customized in either project but I believe the main difference is in
config/kube_config.py
KubeConfigLoader._set_config
kubernetes.py
https://github.com/kubernetes-client/python-base/blob/master/config/kube_config.py#L568kubernetes_asyncio.py
https://github.com/tomplus/kubernetes_asyncio/blob/master/kubernetes_asyncio/config/kube_config.py#L367The text was updated successfully, but these errors were encountered: