Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GKE: Insufficient regional quota to satisfy request: resource "IN_USE_ADDRESSES"

I'm trying to create a GKE cluster using:

gcloud container clusters create mycluster --region europe-west1

but I'm having an error:

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

It seems that there's a problem with the limit of the resource IN_USE_ADDRESSES. This is weird because the project is new therefore I don't have any resource except the cluster I want to crate. I have a second project in which I deployed a postgres DB. Nothing more.

When I visit the quota page, it seems that I didn't exceed any limit.

enter image description here

Your help will be appreciated.

like image 665
4m1nh4j1 Avatar asked Nov 19 '19 20:11

4m1nh4j1


2 Answers

I had this same problem, by default the number of nodes created by the gcloud container clusters create command is 3 and it seems there is 3 static address allocated for each node.

If you really don't need all those static addresses you can specify 2 nodes which should only allocate 6 static addresses via the --num-nodes switch eg.

gcloud container clusters create <cluster-name> --num-nodes=2

like image 73
redbandit Avatar answered Sep 22 '22 21:09

redbandit


IN_USE_ADDRESSES means both static and ephemeral IP addresses. To create your cluster requires a total of 9 (which includes all of your services in the region) but your quota only allows for 8 addresses total.

Solution: Request a quota increase. Follow this link to understand how to request a quota link. A quota increase is requested in the Google Cloud Console. Tip: Increase both global and regional. This will cover load balancers in the future (and other services that use Global IP addresses).

like image 43
John Hanley Avatar answered Sep 21 '22 21:09

John Hanley