C3W3 does not have enough resources available to fulfill the request

When try to create the GKE cluster using code

gcloud container clusters create $CLUSTER_NAME \
  --project=$PROJECT_ID \
  --release-channel=stable \
  --cluster-version=1.21.12-gke.1500 \
  --machine-type=n1-standard-4 \
  --scopes compute-rw,gke-default,storage-rw \
  --num-nodes=3

I encountered the following error

statusMessage: “Google Compute Engine: Not all instances running in IGM after 19.806393899s. Expected 3, running 0, transitioning 3. Current errors: [GCE_STOCKOUT]: Instance ‘gke-cluster-1-default-pool-81c69452-5bxj’ creation failed: The zone ‘projects/qwiklabs-gcp-01-c9ee07d66745/zones/us-central1-f’ does not have enough resources available to fulfill the request. Try a different zone, or try again later.; [GCE_STOCKOUT]: Instance ‘gke-cluster-1-default-pool-81c69452-t8gd’ creation failed: The zone ‘projects/qwiklabs-gcp-01-c9ee07d66745/zones/us-central1-f’ does not have enough resources available to fulfill the request. Try a different zone, or try again later.; [GCE_STOCKOUT]: Instance ‘gke-cluster-1-default-pool-81c69452-zqr6’ creation failed: The zone ‘projects/qwiklabs-gcp-01-c9ee07d66745/zones/us-central1-f’ does not have enough resources available to fulfill the request. Try a different zone, or try again later.”
targetLink: ‘https://container.googleapis.com/v1/projects/111040201854/zones/us-central1-f/clusters/cluster-1
zone: ‘us-central1-f’>] finished with error: Google Compute Engine: Not all instances running in IGM after 19.806393899s. Expected 3, running 0, transitioning 3. Current errors: [GCE_STOCKOUT]: Instance ‘gke-cluster-1-default-pool-81c69452-5bxj’ creation failed: The zone ‘projects/qwiklabs-gcp-01-c9ee07d66745/zones/us-central1-f’ does not have enough resources available to fulfill the request. Try a different zone, or try again later.; [GCE_STOCKOUT]: Instance ‘gke-cluster-1-default-pool-81c69452-t8gd’ creation failed: The zone ‘projects/qwiklabs-gcp-01-c9ee07d66745/zones/us-central1-f’ does not have enough resources available to fulfill the request. Try a different zone, or try again later.; [GCE_STOCKOUT]: Instance ‘gke-cluster-1-default-pool-81c69452-zqr6’ creation failed: The zone ‘projects/qwiklabs-gcp-01-c9ee07d66745/zones/us-central1-f’ does not have enough resources available to fulfill the request. Try a different zone, or try again later.

Tried several times still have this problem.

07/08/2022

Please see this thread. I understand that the exercise is different but the solution involves changing the zone or a fix from qwiklabs.

Don’t forget to move your post to the right course / week. Click the pencil icon the post heading to change the topic.

1 Like

Thanks a lot for letting me know. But when I try to use chat support, I was told "Your current support service is Basic Support, covering admin and billing inquiries only. "

Do you have any suggestions regarding the zones besides “us-central1-f”? Thanks in advance.

Please see this link for the list of zones.

1 Like

You could try this command in Cloud Shell to get all zones too:
gcloud compute zones list

1 Like

Thanks a lot. It helped me solve my problem.

Same for me. I added --zone="us-west4-c" to the cluster creation command and now it works. :smile:

/e: It is more clever to just run gcloud config set compute/zone us-west4-c at the beginning of the lab, so your default zone changes and you can run the following commands without any changes :slight_smile:

2 Likes