← GKE162 / 640
easygcloud

Enable cluster autoscaling on a GKE node pool with min/max node bounds

command

gcloud container node-pools update default-pool --cluster=prod-cluster --enable-autoscaling --min-nodes=2 --max-nodes=10 --zone=us-central1-a

Command breakdown

Part of the Google Cloud CLI (gcloud) — GKE category.

gcloudcontainernode-poolsupdatedefault-pool--cluster=prod-cluster--enable-autoscaling--min-nodes=2--max-nodes=10--zone=us-central1-a
FlagPurpose
--clusterSet to: prod-cluster
--enable-autoscalingBoolean flag
--min-nodesSet to: 2
--max-nodesSet to: 10
--zoneSet to: us-central1-a

Test your recall — not just your reading.

Practice with interactive quiz →