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
{{ message }}
Repository navigation
When the latest gcloud and kubectl, helm cluster authorization sporadically fails #2249
With the Google Cloud SDK 150.0.0 release, kubectl is configured to use the credentials of the active gcloud account instead of application default credentials. Under the hood, every kubectl command generates a short-lived access token.
As a result, when a kubectl command hasn't been run for some time, and a helm command is run, the helm command fails with e.g.
Error: Get https://<REDACTED>/api/v1/namespaces/kube-system/pods?labelSelector=app%3Dhelm%2Cname%3Dtiller: error executing access token command "/google-cloud-sdk/bin/gcloud ": exit status 2
This can be resolved by running a kubectl command to generate a short-lived access token, and then running the desired helm command.
Helm should generate a short-lived auth token on its own.
can anyone bump this thread and let us know if this is still relevant for k8s 1.8/helm 2.7? I haven't seen any activity on this issue since April and Google Cloud SDK's now at 177.0.0.
Activity
kuroneko25 commentedon Apr 10, 2017
This may be useful kubernetes/kubernetes#30617 as a reference
thomastaylor312 commentedon Apr 11, 2017
Thanks for the link @kuroneko25, there are some possible good workarounds there.
I am going to tag this as a bug for now.
hvalle commentedon Apr 18, 2017
Try any of the following, they worked for me:
gcloud config set container/use_application_default_credentials trueor
export CLOUDSDK_CONTAINER_USE_APPLICATION_DEFAULT_CREDENTIALS=trueYou can read on the 150.0.0 release notes for more info.
Hope it helps :)
devops1337 commentedon Apr 30, 2017
@hvalle's instructions didn't work for me
bacongobbler commentedon Oct 31, 2017
can anyone bump this thread and let us know if this is still relevant for k8s 1.8/helm 2.7? I haven't seen any activity on this issue since April and Google Cloud SDK's now at 177.0.0.
bacongobbler commentedon Oct 31, 2017
closed as resolved in #2277.
Davidrjx commentedon May 23, 2019
#2277 seems not works as it can not extend expire validly