【发布时间】:2018-12-14 06:14:10
【问题描述】:
在 Google Cloud Platform 中,我创建了一个 SERVICE ACCOUNT 并分配了 OWNER 和 SERVICE ACCOUNT ACTOR 角色。
当我在下面运行命令时
gcloud container clusters get-credentials travis-test --zone us-central1-c --project phantom-zone-00001
它在下面返回错误
正在获取集群端点和身份验证数据。
错误:(gcloud.container.clusters.get-credentials)ResponseError:代码=403,消息=必需的“container.clusters.get” “projects/phantom-zone-00001/zones/us-central1-c/clusters/travis-test”的权限。
如果我使用自己的帐户调用命令(而不是 SERVICE ACCOUNT),它运行得非常好
你能把我引向正确的方向吗?提前致谢。
【问题讨论】:
标签: google-cloud-platform google-kubernetes-engine