Greetings:
I’m trying to deploy a deployment to my Autopilot GKE cluster in the region asia-east1.
However, my deployment didn’t start as expected. Instead, I got this log from my cluster.
The zone ‘projects/my-project-id/zones/asia-east1-b’ does not have enough resources available to fulfill the request.
It looks like a specific zone is in high demand, so I scrambled to find an official document that explains how to configure pod deployment to that zone.
I modified my deployment to the following.
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-deployment
namespace: my-namespace
spec:
replicas: 1
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: topology.kubernetes.io/zone
operator: In
values:
- asia-east1-c
- asia-east1-a
containers:
...Bunch of containers
volumes:
...Bunch of volumes with PVC
Unfortunately, this modification does not work for the Autopilot cluster since I observed the cluster log and can’t find any further logs related to the ‘Scale-up instance group’ event.
Is there any workaround at this time besides creating a new cluster in the other region or waiting for the zone to have enough resources to handle my request?