Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 在GKE中使用N2机器类型-(Google Kubernetes引擎)_Google Cloud Platform_Google Kubernetes Engine - Fatal编程技术网

Google cloud platform 在GKE中使用N2机器类型-(Google Kubernetes引擎)

Google cloud platform 在GKE中使用N2机器类型-(Google Kubernetes引擎),google-cloud-platform,google-kubernetes-engine,Google Cloud Platform,Google Kubernetes Engine,我正在尝试基于单个节点创建集群,机器类型为n2-highcpu-2,位置为europe-west3-a。在创建节点时,我收到以下错误消息: 区域配额不足,无法满足请求:资源“N2_CPU”: 请求需要“2.0”且短于“2.0”。该项目的配额为 “0.0”和“0.0”可用。在上查看和管理配额 我通过配额页面请求增加配额(见下文附录1)。 后来我总是收到来自谷歌的以下邮件,我无法增加配额: 你好,, 我们试图调整您的项目配额:gordion项目,但 未发现需要进行的任何更改。这可能是由于 无法完成

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

区域配额不足,无法满足请求:资源“N2_CPU”: 请求需要“2.0”且短于“2.0”。该项目的配额为 “0.0”和“0.0”可用。在上查看和管理配额

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

你好,, 我们试图调整您的项目配额:gordion项目,但 未发现需要进行的任何更改。这可能是由于 无法完成部分请求。如果你愿意 减少您的配额,请回复此消息并提供支持 代表会给你回电的。如果当前值仍然为 不足,请提交一个新的请求,减少询问次数或 其他理由。要验证当前配额,请导航到

致以最良好的祝愿,祝您快乐

真诚的支持云平台

我还可以做些什么来创建n2机器类型的集群

附录1

编辑1:

编辑2:

我在CLI中运行了命令:
gcloud容器集群创建“test-cluster-1”--区域“europe-west1-b”--机器类型“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.

此错误意味着您在该特定区域遇到临时资源缺货问题。在我的项目中,我试图遵循你的步骤,但我也犯了同样的错误

建议的解决方法是尝试其他区域或稍后检查特定区域。查看文档并尝试其他区域

我快速检查了一些区域,如
europe-west1-b
europe-west1-c
europe-west2-a
europe-west2-c
europe-west4-b
europe-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
我可以使用当前配额运行测试

更新欧洲西部1-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
更新2查看错误消息:

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.

问题的主要原因是
区域配额不足,无法满足请求:资源“N2\U CPU”
。请再试一次,如果得到相同的答复,请联系

您是否在该特定区域创建了其他机器?原因可能是您的配额已超过。你试过在不同的地区创作吗?您使用的是免费试用帐户还是组织帐户?配额可能由组织定义。此区域中没有其他计算机。没有试用帐户。我与我创建的一个组织有一个项目,并插入了我的信用卡。我尝试在
europe-west1-b
上创建一个集群,使用
n2-highcpu-2
。。。通过问题中描述的相同过程,得到相同的结果:|1.请使用
IAM&Admin
->
配额
->选择
computeengineapi
N2 CPU
europe-west1
europe-west2
europe-west3
europe-west4
的屏幕截图更新您的问题。2.我在
europe-west1-b
中创建集群没有问题。查看更新后的答案,并使用命令和输出更新问题。您仍然有问题吗?是的。我已经用你要求的截图更新了这个问题。我也尝试了
europe-west-1-b
,但同样的错误。我只能看到昨天只有一个区域的相同屏幕截图。尝试运行
gcloud容器集群创建“test-cluster-1”--区域“europe-west1-b”--机器类型“n2-highcpu-2”
并共享输出。