为什么从本地终端上的gcloud使用Google Cloud Shell大约5分钟不活动后,为什么我仍然注销?
ERROR: (gcloud.container.clusters.get-credentials) ResponseError: code=401, message=Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
f
我似乎在gcloud shell上拥有过时的凭证...使用浏览器版本时永远不会发生
答案 0 :(得分:1)
@Ray,根据官方documentation的说法,Cloud Shell仅用于交互式使用,并且经过一段时间不活动后,它将把您赶出场。
如果您使用网页上的命令行管理程序,是否会遇到相同的问题?
您尝试了here给出的步骤吗?
您是否已使用服务帐户进行身份验证?如果您运行gcloud auth list
,会得到什么?
编辑:此问题已在新版本中修复,@ RayFoss评论说他也无法复制它。