Docker Kubernetes群集错误请求在Google Cloud上的身份验证范围不足

时间:2016-07-10 11:04:58

标签: docker kubernetes google-cloud-platform google-kubernetes-engine

我正在尝试在Google云上运行Kubernetes群集。我使用以下链接 - http://kubernetes.io/docs/hellonode/

当我执行以下命令时 - gcloud容器集群get-credentials hello-world

我收到错误请求的身份验证范围不足

这个问题的可能解决方案是什么?

1 个答案:

答案 0 :(得分:3)

Container Engine API需要cloud-platform OAuth2 Scope进行身份验证。如果您从Google Compute Engine实例运行这些命令,则需要使用该身份验证范围创建实例:

  • 使用gcloud CLI,将--scopes=cloud-platform添加到gcloud compute instances create命令。

  • 在Developer Console UI中,在“创建实例”页面上选择“允许对所有Cloud API的完全访问权限”。