Manage and monitor Kubernetes deployment rollouts.
medium risk
kubectl rollout manages deployment rollouts: checking status, viewing history, pausing, resuming, and rolling back. Essential for zero-downtime deployments and incident response — a bad deploy can be reverted in seconds with rollout undo.
kubectl rollout status deployment/myappWatch rollout progress until complete · explain & risk-check →kubectl rollout history deployment/myappView rollout history and revisions · explain & risk-check →kubectl rollout undo deployment/myappRollback to previous revision · explain & risk-check →kubectl rollout undo deployment/myapp --to-revision=3Rollback to specific revision · explain & risk-check →kubectl rollout restart deployment/myappRolling restart of all pods · explain & risk-check →Run `kubectl rollout status deployment/myapp --timeout=5m` in CI/CD pipelines — it blocks until the rollout completes (or fails), making the pipeline accurately reflect deploy success.
Reference text is hand-written and may be incomplete — check man kubectl for your version. Test destructive commands on a non-production system first.