无法在 Google Cloud 中创建 kubernetes 集群

无法在 Google Cloud 中创建 kubernetes 集群

运行以下命令在 Google Kubernetes Engine 上创建集群。然后我收到以下错误。

Google Cloud 状态仪表板截至 2020 年 7 月 22 日上午 10 点(东部夏令时),GKE 处于绿色状态。

有人知道发生了什么事吗?

gcloud container clusters create demo \
  --cluster-version latest \
  --machine-type=n1-standard-2 \
  --num-nodes 4 \
  --zone us-east1-b
ERROR: (gcloud.container.clusters.create) Operation [<Operation
 clusterConditions: [<StatusCondition
 message: "[CONDITION_NOT_MET]: Instance 'gke-demo-default-pool-a53ea683-4fv2' creation failed: Constraint constraints/compute.vmExternalIpAccess violated for project 230730309217. Add instance projects/hipster-shop-277101/zones/us-east1-b/instances/gke-demo-default-pool-a53ea683-4fv2 to the constraint to use external IP with it.">, <StatusCondition
 message: "[CONDITION_NOT_MET]: Instance 'gke-demo-default-pool-a53ea683-4gr4' creation failed: Constraint constraints/compute.vmExternalIpAccess violated for project 230730309217. Add instance projects/hipster-shop-277101/zones/us-east1-b/instances/gke-demo-default-pool-a53ea683-4gr4 to the constraint to use external IP with it.">, <StatusCondition
 message: "[CONDITION_NOT_MET]: Instance 'gke-demo-default-pool-a53ea683-f1fx' creation failed: Constraint constraints/compute.vmExternalIpAccess violated for project 230730309217. Add instance projects/hipster-shop-277101/zones/us-east1-b/instances/gke-demo-default-pool-a53ea683-f1fx to the constraint to use external IP with it.">, <StatusCondition
 message: "[CONDITION_NOT_MET]: Instance 'gke-demo-default-pool-a53ea683-g4br' creation failed: Constraint constraints/compute.vmExternalIpAccess violated for project 230730309217. Add instance projects/hipster-shop-277101/zones/us-east1-b/instances/gke-demo-default-pool-a53ea683-g4br to the constraint to use external IP with it.">, <StatusCondition
 message: "Not all instances running in IGM after 27.672242329s. Expect 4. Current errors: [CONDITION_NOT_MET]: Instance 'gke-demo-default-pool-a53ea683-4fv2' creation failed: Constraint constraints/compute.vmExternalIpAccess violated for project 230730309217. Add instance projects/hipster-shop-277101/zones/us-east1-b/instances/gke-demo-default-pool-a53ea683-4fv2 to the constraint to use external IP with it.; [CONDITION_NOT_MET]: Instance 'gke-demo-default-pool-a53ea683-4gr4' creation failed: Constraint constraints/compute.vmExternalIpAccess violated for project 230730309217. Add instance projects/hipster-shop-277101/zones/us-east1-b/instances/gke-demo-default-pool-a53ea683-4gr4 to the constraint to use external IP with it.; [CONDITION_NOT_MET]: Instance 'gke-demo-default-pool-a53ea683-f1fx' creation failed: Constraint constraints/compute.vmExternalIpAccess violated for project 230730309217. Add instance projects/hipster-shop-277101/zones/us-east1-b/instances/gke-demo-default-pool-a53ea683-f1fx to the constraint to use external IP with it.; [CONDITION_NOT_MET]: Instance 'gke-demo-default-pool-a53ea683-g4br' creation failed: Constraint constraints/compute.vmExternalIpAccess violated for project 230730309217. Add instance projects/hipster-shop-277101/zones/us-east1-b/instances/gke-demo-default-pool-a53ea683-g4br to the constraint to use external IP with it.">]
 detail: "Not all instances running in IGM after 27.672242329s. Expect 4. Current errors: [CONDITION_NOT_MET]: Instance 'gke-demo-default-pool-a53ea683-4fv2' creation failed: Constraint constraints/compute.vmExternalIpAccess violated for project 230730309217. Add instance projects/hipster-shop-277101/zones/us-east1-b/instances/gke-demo-default-pool-a53ea683-4fv2 to the constraint to use external IP with it.; [CONDITION_NOT_MET]: Instance 'gke-demo-default-pool-a53ea683-4gr4' creation failed: Constraint constraints/compute.vmExternalIpAccess violated for project 230730309217. Add instance projects/hipster-shop-277101/zones/us-east1-b/instances/gke-demo-default-pool-a53ea683-4gr4 to the constraint to use external IP with it.; [CONDITION_NOT_MET]: Instance 'gke-demo-default-pool-a53ea683-f1fx' creation failed: Constraint constraints/compute.vmExternalIpAccess violated for project 230730309217. Add instance projects/hipster-shop-277101/zones/us-east1-b/instances/gke-demo-default-pool-a53ea683-f1fx to the constraint to use external IP with it.; [CONDITION_NOT_MET]: Instance 'gke-demo-default-pool-a53ea683-g4br' creation failed: Constraint constraints/compute.vmExternalIpAccess violated for project 230730309217. Add instance projects/hipster-shop-277101/zones/us-east1-b/instances/gke-demo-default-pool-a53ea683-g4br to the constraint to use external IP with it."
 endTime: '2020-07-22T13:50:22.491208073Z'
 name: 'operation-1595425781652-ad5953b3'
 nodepoolConditions: []
 operationType: OperationTypeValueValuesEnum(CREATE_CLUSTER, 1)
 progress: <OperationProgress
 metrics: [<Metric
 intValue: 6
 name: 'CLUSTER_DEPLOYING'>, <Metric
 intValue: 6
 name: 'CLUSTER_DEPLOYING_TOTAL'>]
 stages: []>
 selfLink: 'https://container.googleapis.com/v1/projects/230730309217/zones/us-east1-b/operations/operation-1595425781652-ad5953b3'
 startTime: '2020-07-22T13:49:41.652224299Z'
 status: StatusValueValuesEnum(DONE, 3)
 statusMessage: "Not all instances running in IGM after 27.672242329s. Expect 4. Current errors: [CONDITION_NOT_MET]: Instance 'gke-demo-default-pool-a53ea683-4fv2' creation failed: Constraint constraints/compute.vmExternalIpAccess violated for project 230730309217. Add instance projects/hipster-shop-277101/zones/us-east1-b/instances/gke-demo-default-pool-a53ea683-4fv2 to the constraint to use external IP with it.; [CONDITION_NOT_MET]: Instance 'gke-demo-default-pool-a53ea683-4gr4' creation failed: Constraint constraints/compute.vmExternalIpAccess violated for project 230730309217. Add instance projects/hipster-shop-277101/zones/us-east1-b/instances/gke-demo-default-pool-a53ea683-4gr4 to the constraint to use external IP with it.; [CONDITION_NOT_MET]: Instance 'gke-demo-default-pool-a53ea683-f1fx' creation failed: Constraint constraints/compute.vmExternalIpAccess violated for project 230730309217. Add instance projects/hipster-shop-277101/zones/us-east1-b/instances/gke-demo-default-pool-a53ea683-f1fx to the constraint to use external IP with it.; [CONDITION_NOT_MET]: Instance 'gke-demo-default-pool-a53ea683-g4br' creation failed: Constraint constraints/compute.vmExternalIpAccess violated for project 230730309217. Add instance projects/hipster-shop-277101/zones/us-east1-b/instances/gke-demo-default-pool-a53ea683-g4br to the constraint to use external IP with it."
 targetLink: 'https://container.googleapis.com/v1/projects/230730309217/zones/us-east1-b/clusters/demo'
 zone: 'us-east1-b'>] finished with error: Not all instances running in IGM after 27.672242329s. Expect 4. Current errors: [CONDITION_NOT_MET]: Instance 'gke-demo-default-pool-a53ea683-4fv2' creation failed: Constraint constraints/compute.vmExternalIpAccess violated for project 230730309217. Add instance projects/hipster-shop-277101/zones/us-east1-b/instances/gke-demo-default-pool-a53ea683-4fv2 to the constraint to use external IP with it.; [CONDITION_NOT_MET]: Instance 'gke-demo-default-pool-a53ea683-4gr4' creation failed: Constraint constraints/compute.vmExternalIpAccess violated for project 230730309217. Add instance projects/hipster-shop-277101/zones/us-east1-b/instances/gke-demo-default-pool-a53ea683-4gr4 to the constraint to use external IP with it.; [CONDITION_NOT_MET]: Instance 'gke-demo-default-pool-a53ea683-f1fx' creation failed: Constraint constraints/compute.vmExternalIpAccess violated for project 230730309217. Add instance projects/hipster-shop-277101/zones/us-east1-b/instances/gke-demo-default-pool-a53ea683-f1fx to the constraint to use external IP with it.; [CONDITION_NOT_MET]: Instance 'gke-demo-default-pool-a53ea683-g4br' creation failed: Constraint constraints/compute.vmExternalIpAccess violated for project 230730309217. Add instance projects/hipster-shop-277101/zones/us-east1-b/instances/gke-demo-default-pool-a53ea683-g4br to the constraint to use external IP with it.

答案1

我可以使用此命令创建集群,没有任何问题。

您的问题是由您的组织策略约束应用于本项目。

约束/计算.vmExternalIpAccess

您需要联系您的组织管理员以获得适当的权限。

主页 > IAM 和管理 > 身份和组织 > 定义适当的权限。

相关内容