[英]“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.