kubectl scale
ScalingScale deployment replicas
Examples
Common usage examples
Scale to 3 replicas
kubectl scale deployment myapp --replicas=3Scale down to zero
kubectl scale deployment myapp --replicas=0Scale from file
kubectl scale --replicas=5 -f deployment.yamlNotes
- Also works with replicasets and statefulsets
Related Commands
You might also find these useful