Using Console
Using CLI
gcloud container clusters list
to list all the clusters available in your project.gcloud container clusters update CLUSTER_NAME --enable-autoscaling --min-nodes=1 --max-nodes=10 --num-nodes=3
to enable the worker pool autoscaling for the cluster.
CLUSTER_NAME
with the name of your cluster.--enable-autoscaling
enables the autoscaling feature.--min-nodes=1
sets the minimum number of nodes to 1.--max-nodes=10
sets the maximum number of nodes to 10.--num-nodes=3
sets the initial number of nodes to 3.gcloud container clusters describe CLUSTER_NAME
.autoscaling
field is set to enabled
.Using Python