What does this command do?
kubectl scale deployment web --replicas=5
- Sets the deployment to run 5 pod replicas
- Creates five brand-new deployments
- Limits each pod to five CPU cores
- Rolls the deployment back five revisions
kubectl scale adjusts the "web" deployment to maintain 5 running pod replicas.
Play DevOps ▸