Sets the web deployment's replica count to 3, and the deployment controller creates or deletes pods to match. Scaling down deletes pods, so stateful workloads need careful handling. For automatic sizing, use kubectl autoscale deploy/web --min=2 --max=10 --cpu-percent=70.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.