October 2019
Intermediate to advanced
520 pages
13h 5m
English
You can also set your cluster to autoscale. The scaling event can be triggered by changes in workloads and resource usage. Autoscaling monitors your nodes and checks whether they should be increased or decreased. The maximum and minimum nodes to run in the cluster are defined in the following command:
gcloud container clusters create $CLUSTER_NAME --num-nodes $NUM --enable-autoscaling --min-nodes $MIN_NODES --max-nodes $MAX_NODES --zone $COMPUTE_ZONE
Here, we have the following options:
You can also change the autoscaling settings using the following command:
gcloud container ...
Read now
Unlock full access