[英]Unable to create Kubernetes cluster on Google Kubernetes Engine
We are unable to create Kubernetes clusters in our Google Cloud project. 我们无法在Google Cloud项目中创建Kubernetes集群。 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. 但是,分配给尝试创建集群的用户的角色是
Project/Owner
,创建集群时选择的服务帐户具有Project/Editor
,其中包括compute.zones.get
权限。 Even if I give the service account Project/Owner
it still gives the same error. 即使我将服务帐户授予
Project/Owner
它仍然会给出相同的错误。
EDIT 编辑
When trying to create the cluster with gcloud
we get a different (similar) error: 尝试使用
gcloud
创建集群时,我们收到另一个(类似)错误:
Google Compute Engine: Required 'compute.networks.get' permission for 'projects/<project code>/global/networks/default'
不知道出了什么问题,但是解决方法是禁用所有计算服务,然后重新初始化Kubernetes服务。
You lack the cloudservices service account in IAM. 您在IAM中缺少cloudservices 服务帐户 。 A current workaround for this issue is to re-enable the Google Cloud Compute Engine API.
该问题的当前解决方法是重新启用Google Cloud Compute Engine API。
由于明显的依赖循环,我无法禁用Compute API,但是创建了一个新的GCP项目为我“修复”了这一问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.