kubernetes/scale-deployment

Scale Deployment

Scale replicas of a deployment

deployments
management

Command

kubectl scale deployment <deployment-name> --replicas=<n>

Explanation

Adjusts the number of pod replicas.

Examples

Scale up to 5 replicas

kubectl scale deployment nginx-deploy --replicas=5