learn-terraform-provision-gke-cluster icon indicating copy to clipboard operation
learn-terraform-provision-gke-cluster copied to clipboard

Error creating NodePool

Open Kavinjsir opened this issue 1 year ago • 2 comments

Hi, I'm getting start with the tutorial and by running tf apply, following error occurred:

Screenshot 2023-08-13 at 11 35 28 PM

I tried resolving it by changing the location as:

Screenshot 2023-08-13 at 11 37 16 PM

As I'm quite new to google cluster, wondering if this is relative to the zonal cluster OR if somewhere I might be missing?

Kavinjsir avatar Aug 14 '23 03:08 Kavinjsir

@Kavinjsir There is an overall quota that is blocking you. Under Compute Engine API (https://console.cloud.google.com/apis/api/compute.googleapis.com/quotas). You either need to raise your quota to more than 500GB for Persistent Disk SSD or alternatively lower the disk size on your primary nodes (I think it can be set using disk_size_gb).

blaur avatar Aug 29 '23 08:08 blaur

I also run into this issue. Given that the tutorial is presented as something that should work with Free Tier OOTB it would be useful to add the disk_size_gb configuration directly into the gke.tf. It could be commented out with some explanation.

In my case something was just eating ~100GB disk space from my SSD quota (not sure what was that because all the other project were deleted – though they were still scheduled for deletion so maybe that is why ... and this can be a common cause of the issue).

lukas-vlcek avatar Sep 07 '23 18:09 lukas-vlcek