Change the number of copies with one command. Updating the image replaces Pods a few at a time, so the app stays online, and a bad release can be rolled back.
kubectl scale deployment web --replicas=5 kubectl set image deployment/web web=nginx:1.28 kubectl rollout status deployment/web kubectl rollout undo deployment/web