[英](gcloud.container.clusters.create) ResponseError: code=400, message=The user does not have access to service account “default”
gcloud auth activate-service-account --key-file aysc.json
gcloud config set project abcxyz
gcloud config set compute/zone europe-west1-b
gcloud container clusters create wordpress --num-nodes=2
I'm running the above commands, on the last command I'm getting an error of: 我正在运行以上命令,在上一个命令中出现以下错误:
ERROR: (gcloud.container.clusters.create) ResponseError: code=400, message=The user does not have access to service account "default".
However this account is part of the service account actor group. 但是,此帐户是服务帐户参与者组的一部分。 I've also disabled and enabled the container API, which did not change the behavior. 我还禁用并启用了容器API,该容器API并未更改行为。 It was suggested by this question: https://serverfault.com/questions/780363/external-the-user-does-not-have-access-to-service-account-default 有人提出了以下问题: https : //serverfault.com/questions/780363/external-the-user-does-not-have-access-to-service-account-default
I saw this situation a few days ago. 我几天前看到了这种情况。 This error means that the service account you are are running gcloud with using cannot ActAs the service account the VMs will run as (default compute service account in this case). 此错误表示您正在使用gcloud运行的服务帐户无法作为虚拟机将作为该服务帐户运行(在这种情况下为默认计算服务帐户)。
I would sanity check the following: 我会仔细检查以下内容:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.