How to refresh kubernetes config access-token in GKE

8/3/2018

how to refresh token in gcloud or GKE cluster in spinnaker

kubeconfig expaires after 1 hour, how to refresh token in gcloud or GKE cluster in spinnaker
-- phanip
google-kubernetes-engine
kubernetes
spinnaker

1 Answer

8/13/2018

This appears to be a known issue, could you try updating the credential file using the following command:

gcloud container clusters get-credentials NAME [--region=REGION     | --zone=ZONE, -z ZONE] [GCLOUD_WIDE_FLAG …]

This Github thread suggested the above solution and it worked for other users. Additionally review this thread to get an overview of this issue.

-- Ariv
Source: StackOverflow