4m1nh4j1
4m1nh4j1

Reputation: 4356

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.

Upvotes: 7

Views: 7924

Answers (4)

Thiringai
Thiringai

Reputation: 1

Request a quota increase from the GCP support team. Or reduce the number of nodes you are creating, gcloud container clusters create --name --num-nodes (e.g 2) --zone (choose a zone)... alternatively you can set a zone to use, i.e, gcloud config set compute/zone (your chosen zone), this way you dont have to keep on updating the zone you want to create your infra in.

Upvotes: 0

Thiringai
Thiringai

Reputation: 1

you also need to choose a zone for the cluster, use gcloud container clusters create [insert cluster name here] --num-nodes 3 --zone us-central1-f(or any zone you want)...by using the region, if you specify 2 nodes, in every zone 2nodes will be provided thats why you are exceeding the quota...

Upvotes: -1

redbandit
redbandit

Reputation: 2202

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

Upvotes: 11

John Hanley
John Hanley

Reputation: 81336

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).

Upvotes: 8

Related Questions