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
kubectl scale deployment <deployment-name> --replicas=<n>
Adjusts the number of pod replicas.
Scale up to 5 replicas
kubectl scale deployment nginx-deploy --replicas=5