← GKE164 / 640
easykubectl

Scale a Kubernetes deployment to a specific replica count and verify

command

kubectl scale deployment web-api --replicas=8

also accepted

kubectl scale deployment web-api --replicas=8 && kubectl get deployment web-api

Command breakdown

Part of the Kubernetes CLI (kubectl) — GKE category.

kubectlscaledeploymentweb-api--replicas=8
FlagPurpose
--replicasSet to: 8

Test your recall — not just your reading.

Practice with interactive quiz →