We are unable to create Kubernetes clusters in our Google Cloud project. It was working a few weeks ago. We keep getting the following error:
Google Compute Engine: Required 'compute.zones.get' permission for 'projects/<project code>/zones/us-central1-a'
However, the role assigned to the user trying to create the cluster is Project/Owner
, and the service account selected when creating the cluster has Project/Editor
, which includes the compute.zones.get
permission. Even if I give the service account Project/Owner
it still gives the same error.
EDIT
When trying to create the cluster with gcloud
we get a different (similar) error:
Google Compute Engine: Required 'compute.networks.get' permission for 'projects/<project code>/global/networks/default'
不知道出了什么问题,但是解决方法是禁用所有计算服务,然后重新初始化Kubernetes服务。
You lack the cloudservices service account in IAM. A current workaround for this issue is to re-enable the Google Cloud Compute Engine API.
由于明显的依赖循环,我无法禁用Compute API,但是创建了一个新的GCP项目为我“修复”了这一问题。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.