Commands.app

kubectl scale

Scaling

Scale deployment replicas

Examples
Common usage examples

Scale to 3 replicas

kubectl scale deployment myapp --replicas=3

Scale down to zero

kubectl scale deployment myapp --replicas=0

Scale from file

kubectl scale --replicas=5 -f deployment.yaml
Notes
  • Also works with replicasets and statefulsets
Related Commands
You might also find these useful