[英]PERMISSION_DENIED: Insufficient project quota to satisfy request: resource
I am following a tutorial using an account with $300 credits so I am limited to what I can do generally but I would want to know what the contents of this error I get when trying to resize a node-pool or add another node-pool to my gcp project, here is the error message:我正在学习一个使用具有 300 美元信用额度的帐户的教程,所以我通常只能做一些事情,但我想知道在尝试调整节点池大小时或将另一个节点池添加到我的 gcp 项目,这是错误消息:
ERROR: (gcloud.container.clusters.resize) PERMISSION_DENIED: Insufficient project quota to satisfy request: resource "CPUS_ALL_REGIONS": request requires '9.0' and is short '3.0'.
错误:(gcloud.container.clusters.resize) PERMISSION_DENIED:项目配额不足以满足请求:资源“CPUS_ALL_REGIONS”:请求需要“9.0”且短“3.0”。 project has a quota of '12.0' with '6.0' available.
项目的配额为“12.0”,可用“6.0”。
And for the creation command this is the error:对于创建命令,这是错误:
ERROR: (gcloud.container.node-pools.create) ResponseError: code=403, message= (1) insufficient regional quota to satisfy request: resource "CPUS": request requires '3.0' and is short '1.0'.
错误:(gcloud.container.node-pools.create)ResponseError:代码=403,消息=(1)区域配额不足以满足请求:资源“CPUS”:请求需要'3.0'并且是短的'1.0'。 project has a quota of '8.0' with '2.0' available.
项目的配额为“8.0”,可用“2.0”。
The parts that interest me are:我感兴趣的部分是:
And the commands I am using are:我正在使用的命令是:
gcloud container clusters resize my-reginal-cluster --region us-central1 --node-pool default-pool --size 4
gcloud 容器集群调整大小 my-reginal-cluster --region us-central1 --node-pool default-pool --size 4
and和
gcloud container node-pools create my-pool --num-nodes=1 --cluster my-reginal-cluster --region us-central1
gcloud 容器节点池创建我的池 --num-nodes=1 --cluster my-reginal-cluster --region us-central1
By default create cluster command tries to spin up 9 nodes (3 nodes in 3 availability zones) for the availability regions.默认情况下,create cluster 命令尝试为可用区域启动 9 个节点(3 个可用区中的 3 个节点)。 You can limit the number of nodes by adding --num-nodes parameter in create cluster command.
您可以通过在 create cluster 命令中添加 --num-nodes 参数来限制节点数。
For the first error i would suggest you to follow this Quota Increase documentation to request an increase in the quota.对于第一个错误,我建议您按照此配额增加文档请求增加配额。 Otherwise delete unused resources or deploy a setup with less CPU requirements.
否则,删除未使用的资源或部署 CPU 要求较低的设置。
For the second error, insufficient regional quota meas that the region it's running short on resources.对于第二个错误,区域配额不足意味着该区域资源不足。 You must deploy a setup with less resources or in another region.
您必须使用较少的资源或在其他区域部署设置。
Above answer from user2047665 is correct.以上来自user2047665的回答是正确的。 I tried with --num-nodes=1.
我尝试使用 --num-nodes=1。 CPU error resolved.
CPU 错误已解决。 But new issue came wrt DISK.
但是 DISK 出现了新问题。
ResponseError: code=403, message=Insufficient regional quota to satisfy request: resource "SSD_TOTAL_GB": request requires '300.0' and is short '80.0'. project has a quota of '250.0' with '220.0' available
So I have also added --disk-size所以我还添加了 --disk-size
gcloud container clusters create --machine-type=e2-medium --region=us-central1 --num-nodes=1 --disk-size=10 lab-cluster
It works有用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.