kubectl scale deployment whoami --replicas=5
kubectl scale deployment whoami --replicas=2
- check the deployment and replicast
kubectl get deployments
kubectl get rs
- check the dashboard to see whether number of available replicas have been added
kubectl scale deployment whoami --replicas=5
kubectl scale deployment whoami --replicas=2
kubectl get deployments
kubectl get rs