ERROR: (gcloud.container.clusters.create) ResponseError: code=400, message=Failed
ERROR: (gcloud.container.clusters.create) ResponseError: code=400, message=Failed
您好,我遇到以下错误
ERROR: (gcloud.container.clusters.create) ResponseError: code=400, message=Failed precondition when calling the ServiceConsumerManager: tenantmanager::185014: Consumer 370525719069 should enable service:container.googleapis.com before generating a service account
.
有人可以帮我吗?
您应该启用 API 服务 - container.googleapis.com,执行命令:
$ gcloud services enable container.googleapis.com
请特别看一下这个介绍:environment setup and cluster creation on GKE.
查看更多:gcp-enabling-disabling-services, troubleshooting-enabling-gcp-services, enabling-gcp-services-example.
另一个选项:
由于缺少重要的附加信息(例如环境),很难回答,但此类错误可能表明您正在处理某种 multi-tenancy 环境。确保您拥有创建新集群的适当权限:
Assign roles using IAM
You can control access to Google Cloud
resources through IAM policies. Start by identifying the groups needed for your organization and their scope of operations, then assign the appropriate IAM role to the group. Use Google Groups to efficiently
assign and manage IAM for users.
参见:enterprise-multitenancy-roles。
另请参阅有关如何设置 multi-tenant-cluster-gke-enterprise 的最佳做法。
尝试在共享 VPC 上创建 Google Kubernetes 集群时发生此错误。
共享 VPC 宿主项目缺少 container.googleapis.com
API 激活。
在共享 VPC 宿主项目上激活 container.googleapis.com
API 以解决此问题。
您好,我遇到以下错误
ERROR: (gcloud.container.clusters.create) ResponseError: code=400, message=Failed precondition when calling the ServiceConsumerManager: tenantmanager::185014: Consumer 370525719069 should enable service:container.googleapis.com before generating a service account
.
有人可以帮我吗?
您应该启用 API 服务 - container.googleapis.com,执行命令:
$ gcloud services enable container.googleapis.com
请特别看一下这个介绍:environment setup and cluster creation on GKE.
查看更多:gcp-enabling-disabling-services, troubleshooting-enabling-gcp-services, enabling-gcp-services-example.
另一个选项:
由于缺少重要的附加信息(例如环境),很难回答,但此类错误可能表明您正在处理某种 multi-tenancy 环境。确保您拥有创建新集群的适当权限:
Assign roles using IAM
You can control access to Google Cloud resources through IAM policies. Start by identifying the groups needed for your organization and their scope of operations, then assign the appropriate IAM role to the group. Use Google Groups to efficiently assign and manage IAM for users.
参见:enterprise-multitenancy-roles。
另请参阅有关如何设置 multi-tenant-cluster-gke-enterprise 的最佳做法。
尝试在共享 VPC 上创建 Google Kubernetes 集群时发生此错误。
共享 VPC 宿主项目缺少 container.googleapis.com
API 激活。
在共享 VPC 宿主项目上激活 container.googleapis.com
API 以解决此问题。