rollout
What is rollout?
rollout: Manage and inspect rolling updates — check status, pause, resume, undo to a previous revision, or restart Pods. kubectl rollout manages rolling updates of Deployments, StatefulSets and DaemonSets. kubectl rollout status deployment/web waits until a new version is fully rolled out, and fails if it gets stuck. kubectl rollout undo deployment/web goes back to the previous version, which is often the fastest fix after a bad deploy. kubectl rollout history lists earlier revisions, and kubectl rollout restart replaces all pods with fresh ones using the same image, which is handy after a ConfigMap or Secret change.
Frequently asked questions about rollout
What should you keep in mind with rollout?
Use rollout status in deploy scripts and pipelines, so the pipeline only reports success when the new pods are actually running and ready. Add a change-cause annotation to record why each revision was deployed. Combined with readiness probes, this gives you deploys that stop on their own when the new version is not healthy.
What does an example of rollout look like?
kubectl rollout status deployment/web kubectl rollout undo deployment/web kubectl rollout restart deployment/web At a glance
| Category | Kubernetes |
|---|---|
| Explained by | Reinier de la Parra |
| Updated |