【问题标题】:Using N2 machine types in GKE - (Google Kubernetes Engine)在 GKE 中使用 N2 机器类型 - (Google Kubernetes Engine)
【发布时间】:2020-06-17 20:55:23
【问题描述】:

我正在尝试创建一个基于单个节点的集群,该节点的机器类型为n2-highcpu-2,位置europe-west3-a。在创建节点时,我收到以下错误消息:

区域配额不足以满足请求:资源“N2_CPUS”: 请求需要'2.0'并且是简短的'2.0'。该项目的配额为 '0.0' 和 '0.0' 可用。查看和管理配额 https://console.cloud.google.com/iam-admin/quotas?usage=USED&project=gordion-project.

我正在通过配额页面请求增加配额(请参阅下面的附录 1)。 后来我总是从谷歌收到以下邮件,我无法增加配额:

你好, 我们试图调整您项目的配额:gordion-project 但是 没有发现任何需要进行的更改。这可能是由于 无法完成部分请求。如果你想 减少您的配额,请回复此消息并支持 代表会尽快与您联系。如果当前值仍然 不足,请提出减少要求的新请求或 额外的理由。要验证当前配额,请导航至 https://console.cloud.google.com/iam-admin/quotas?project=xx-xx .

最好的问候和快乐的计算!

此致,云平台支持

我还能做些什么来创建具有 n2 机器类型的集群?

附录-1

编辑 1:

编辑 2:

我在 CLI 中运行了命令:gcloud container clusters create "test-cluster-1" --zone "europe-west1-b" --machine-type "n2-highcpu-2"

得到以下输出:

WARNING: In June 2019, node auto-upgrade will be enabled by default for newly created clusters and node pools. To disable it, use the `--no-enable-autoupgrade` flag.
WARNING: Starting in 1.12, new clusters will have basic authentication disabled by default. Basic authentication can be enabled (or disabled) manually using the `--[no-]enable-basic-auth` flag.
WARNING: Starting in 1.12, new clusters will not have a client certificate issued. You can manually enable (or disable) the issuance of the client certificate using the `--[no-]issue-client-certificate` flag.
WARNING: Starting in 1.12, default node pools in new clusters will have their legacy Compute Engine instance metadata endpoints disabled by default. To create a cluster with legacy instance metadata endpoints disabled in the default node pool, run `clusters create` with the flag `--metadata disable-legacy-endpoints=true`.
WARNING: The Pod address range limits the maximum size of the cluster. Please refer to https://cloud.google.com/kubernetes-engine/docs/how-to/flexible-pod-cidr to learn how to optimize IP address allocation.
This will enable the autorepair feature for nodes. Please see https://cloud.google.com/kubernetes-engine/docs/node-auto-repair for more information on node autorepairs.
ERROR: (gcloud.container.clusters.create) ResponseError: code=403, message=Insufficient regional quota to satisfy request: resource "N2_CPUS": request requires '6.0' and is short '6.0'. project has a quota of '0.0' with '0.0' available. View and manage quotas at https://console.cloud.google.com/iam-admin/quotas?usage=USED&project=gordion-project.

【问题讨论】:

  • 您是否在该特定区域创建了其他机器?原因可能是您的配额已超出。你有没有尝试在不同的地区创作?您使用的是免费试用帐户还是组织帐户 - 配额可能由组织定义。
  • 该区域没有其他机器。没有试用帐户。我有一个与我创建并插入我的信用卡的组织的项目。

标签: google-cloud-platform google-kubernetes-engine


【解决方案1】:

此错误表示您在该特定区域遇到临时资源缺货问题 europe-west3-a。我已经尝试按照您在我的项目中的步骤进行操作,但我遇到了同样的错误。

推荐的解决方法是尝试不同的区域或稍后检查该特定区域。查看文档Regions and Zones 并尝试其他区域。

我快速检查了一些区域,例如europe-west1-beurope-west1-ceurope-west2-aeurope-west2-ceurope-west4-aeurope-west4-beurope-west4-c,没有发现任何问题:

$ gcloud container clusters create "test-cluster-1" --zone "europe-west4-a" --machine-type "n2-highcpu-2" 
WARNING: Currently VPC-native is not the default mode during cluster creation. In the future, this will become the default mode and can be disabled using `--no-enable-ip-alias` flag. Use `--[no-]enable-ip-alias` flag to suppress this warning.
WARNING: Newly created clusters and node-pools will have node auto-upgrade enabled by default. This can be disabled using the `--no-enable-autoupgrade` flag.
WARNING: Starting with version 1.18, clusters will have shielded GKE nodes by default.
WARNING: Your Pod address range (`--cluster-ipv4-cidr`) can accommodate at most 1008 node(s). 
This will enable the autorepair feature for nodes. Please see https://cloud.google.com/kubernetes-engine/docs/node-auto-repair for more information on node autorepairs.
Creating cluster test-cluster-1 in europe-west4-a... Cluster is being health-checked (master is healthy)...done.                  
Created [https://container.googleapis.com/v1/projects/test-prj/zones/europe-west4-a/clusters/test-cluster-1].
To inspect the contents of your cluster, go to: https://console.cloud.google.com/kubernetes/workload_/gcloud/europe-west4-a/test-cluster-1?project=test-prj
kubeconfig entry generated for test-cluster-1.
NAME            LOCATION        MASTER_VERSION  MASTER_IP     MACHINE_TYPE  NODE_VERSION    NUM_NODES  STATUS
test-cluster-1  europe-west4-a  1.14.10-gke.17  34.90.XX.XX  n2-highcpu-2  1.14.10-gke.17  3          RUNNING

我能够使用我当前的配额运行我的测试。

更新测试区域europe-west1-b

$ gcloud container clusters create "test-cluster-1" --zone "europe-west1-b" --machine-type "n2-highcpu-2"
WARNING: Currently VPC-native is not the default mode during cluster creation. In the future, this will become the default mode and can be disabled using `--no-enable-ip-alias` flag. Use `--[no-]enable-ip-alias` flag to suppress this warning.
WARNING: Newly created clusters and node-pools will have node auto-upgrade enabled by default. This can be disabled using the `--no-enable-autoupgrade` flag.
WARNING: Starting with version 1.18, clusters will have shielded GKE nodes by default.
WARNING: Your Pod address range (`--cluster-ipv4-cidr`) can accommodate at most 1008 node(s). 
This will enable the autorepair feature for nodes. Please see https://cloud.google.com/kubernetes-engine/docs/node-auto-repair for more information on node autorepairs.
Creating cluster test-cluster-1 in europe-west1-b... Cluster is being health-checked (master is healthy)...done.                  
Created [https://container.googleapis.com/v1/projects/test-prj/zones/europe-west1-b/clusters/test-cluster-1].
To inspect the contents of your cluster, go to: https://console.cloud.google.com/kubernetes/workload_/gcloud/europe-west1-b/test-cluster-1?project=test-prj
kubeconfig entry generated for test-cluster-1.
NAME            LOCATION        MASTER_VERSION  MASTER_IP     MACHINE_TYPE  NODE_VERSION    NUM_NODES  STATUS
test-cluster-1  europe-west1-b  1.14.10-gke.17  34.76.XX.XX  n2-highcpu-2  1.14.10-gke.17  3          RUNNING

UPDATE2查看错误信息:

ERROR: (gcloud.container.clusters.create) ResponseError: code=403, message=Insufficient regional quota to satisfy request: resource "N2_CPUS": request requires '6.0' and is short '6.0'. project has a quota of '0.0' with '0.0' available. View and manage quotas at https://console.cloud.google.com/iam-admin/quotas?usage=USED&project=gordion-project.

您的问题的主要原因是Insufficient regional quota to satisfy request: resource "N2_CPUS"。再次尝试request an increase in quota,如果您会得到相同的回复,请联系Google Cloud Support

【讨论】:

  • 我尝试使用n2-highcpu-2europe-west1-b 上创建一个集群...经历了问题中描述的相同过程,结果相同。 :|
  • 1.请使用IAM&Admin -> Quotas -> 选择Compute Engine APIN2 CPUseurope-west1europe-west2europe-west3europe-west4 的屏幕截图更新您的问题。 2. 我在europe-west1-b 中创建集群没有问题。查看更新的答案并使用您的命令和输出更新您的问题。
  • 您还有问题吗?
  • 是的。我已经用您要求的屏幕截图更新了问题。我也试过europe-west-1-b 和同样的错误。
  • 我只能看到昨天的屏幕截图,只有一个区域。尝试运行gcloud container clusters create "test-cluster-1" --zone "europe-west1-b" --machine-type "n2-highcpu-2" 并共享输出。
猜你喜欢
  • 2018-09-07
  • 1970-01-01
  • 1970-01-01
  • 2020-11-21
  • 2018-12-25
  • 1970-01-01
  • 2019-01-16
  • 2017-12-14
  • 2023-03-09
相关资源
最近更新 更多