简体   繁体   English

“ gcloud容器集群创建失败”,权限为“ container.clusters.create”

[英]“gcloud container clusters create fails” with “container.clusters.create” permission error

When I create kubernetes cluster with gcloud container clusters create command, a permission error occurs as follows: 当我使用gcloud容器集群创建命令创建kubernetes集群时,发生权限错误如下:

$ gcloud container clusters create my-k8s
WARNING: Currently node auto repairs are disabled by default. In the future this will change and they will be enabled by default. Use `--[no-]enable-autorepair` flag  to suppress this warning.
WARNING: Starting in Kubernetes v1.10, new clusters will no longer get compute-rw and storage-ro scopes added to what is specified in --scopes (though the latter will remain included in the default --scopes). To use these scopes, add them explicitly to --scopes. To use the new behavior, set container/new_scopes_behavior property (gcloud config set container/new_scopes_behavior true).
ERROR: (gcloud.container.clusters.create) ResponseError: code=403, message=Required "container.clusters.create" permission for "projects/test-project".

How I can solve this error ? 我该如何解决这个错误?

Thanks 谢谢

I could start with the following command: 我可以从以下命令开始:

gcloud container clusters create my-k8s --project  test-project-xxxxxx 

Note: Without a project name without number, the creation fails with the same error. 注意:如果项目名称没有编号,则创建失败,并出现相同的错误。

gcloud container clusters create my-k8s --project  test-project

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 部署时获得“权限被拒绝”的container.clusters.create,但不在本地主机上 - Getting “Permission denied” container.clusters.create when deployed but not on localhost ERROR: (gcloud.beta.container.clusters.create) ResponseError: code=400, message=v1 API 无法用于访问 GKE 区域集群 - ERROR: (gcloud.beta.container.clusters.create) ResponseError: code=400, message=v1 API cannot be used to access GKE regional clusters 错误:(gcloud.container.clusters.create)响应错误:代码=400,消息=失败 - ERROR: (gcloud.container.clusters.create) ResponseError: code=400, message=Failed 使用 gcloud container clusters create 创建的 GKE 集群后如何清理? - How to clean up after a GKE cluster created with gcloud container clusters create? 不断获取权限错误 gcloud.container.clusters.get-credentials - Keep getting permissions error gcloud.container.clusters.get-credentials 错误:(gcloud.container.clusters.get-credentials) [Errno 60] 操作超时 - ERROR: (gcloud.container.clusters.get-credentials) [Errno 60] Operation timed out 为什么我会收到“(gcloud.alpha.container.clusters.create) ResponseError: code=404, message=Method not found”。 在 alpha 集群创建期间? - Why am I getting "(gcloud.alpha.container.clusters.create) ResponseError: code=404, message=Method not found." during alpha cluster creation? gcloud container clusters upgrade --node-pool:超时; 我如何使用 gcloud 来判断它何时完成? - gcloud container clusters upgrade --node-pool: it timed out; how do i use gcloud to tell when it's done? Google Container群集VS托管实例组 - Google Container clusters VS Managed Instance groups 无法通过 Kube.netes 在 Hazelcast 中创建集群 - Unable to create clusters in Hazelcast over the Kubernetes
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM