簡體   English   中英

“ gcloud容器集群創建失敗”,權限為“ container.clusters.create”

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

當我使用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".

我該如何解決這個錯誤?

謝謝

我可以從以下命令開始:

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

注意:如果項目名稱沒有編號,則創建失敗,並出現相同的錯誤。

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM