如何在 GKE 中刷新 kubernetes 配置访问令牌

How to refresh kubernetes config access-token in GKE

如何在 spinnaker 中刷新 gcloud 或 GKE 集群中的令牌

kubeconfig expaires after 1 hour, how to refresh token in gcloud or GKE cluster in spinnaker

这似乎是一个已知问题,您能否尝试使用以下 command:

更新凭据文件
gcloud container clusters get-credentials NAME [--region=REGION     | --zone=ZONE, -z ZONE] [GCLOUD_WIDE_FLAG …]

此 Github thread suggested the above solution and it worked for other users. Additionally review this thread 以获得此问题的概述。