Search code examples
kubernetesspinnakergoogle-kubernetes-engine

How to refresh kubernetes config access-token in GKE


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

Solution

  • 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.