谷歌容器集群在创建时给出身份验证错误

时间:2018-10-15 02:20:14

标签: authentication kubernetes google-kubernetes-engine

以下是创建集群时出现的错误:

  

(gcloud.container.clusters.create)ResponseError:代码= 403,消息=请求的身份验证不足   范围

1 个答案:

答案 0 :(得分:0)

检查“ Compute Engine默认服务帐户”的IAM角色,并确保它具有足够的权限来运行命令[2]。通常,它将具有所有者或编辑者角色。

如果您在Google Cloud Console上,则在创建实例时需要查找“身份和API访问”部分,然后选择“允许对所有Cloud API的完全访问权限” [1]

[1] https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances?hl=en_US&_ga=2.168486115.-390700867.1538154355 [2] https://cloud.google.com/iam/docs/granting-roles-to-service-accounts