Docker Kubernetes集群错误请求在Google Cloud上没有足够的身份validation范围
我正在尝试在Google云上运行Kubernetes群集。 我正在使用下面的链接 – http://kubernetes.io/docs/hellonode/
当我执行下面的命令时 – gcloud容器集群get-credentials hello-world
我得到一个错误请求没有足够的authentication范围
这个问题有什么可能的解决办法?
容器引擎API需要cloud-platform
OAuth2范围进行身份validation。 如果您从Google Compute Engine实例运行这些命令,则需要使用该authentication范围创build实例:
-
使用gcloud CLI,为您的
gcloud compute instances create
命令添加--scopes=cloud-platform
。 -
在开发者控制台UI中,在“创build实例”页面上select“允许完全访问所有云API”。