kubectl rollout

Manage and monitor Kubernetes deployment rollouts.

medium risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
What it does

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.

Examples
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 →
Pro tip

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.

Related
kubectl get kubectl apply kubectl describe
Open the full explainer →More in Kubernetes & Helm

Reference text is hand-written and may be incomplete — check man kubectl for your version. Test destructive commands on a non-production system first.