kubectl rollout

Deployment New, and

Syntax

kubectl rollout <subcommand> <resource> [flags]

Parameters

ParametersDescriptionExamplesLevel
status New kubectl rollout status deployment/web Common
history New kubectl rollout history deployment/web Common
undo kubectl rollout undo deployment/web Common
--to-revision kubectl rollout undo deployment/web --to-revision=2 Advanced
restart Pod() kubectl rollout restart deployment/web Common
pause New kubectl rollout pause deployment/web Advanced
resume New kubectl rollout resume deployment/web Advanced

Examples

New

kubectl rollout status deployment/web-app
and moreNew, 0

kubectl rollout history deployment/web-app

kubectl rollout undo deployment/web-app

kubectl rollout undo deployment/web-app --to-revision=3
history

kubectl rollout restart deployment/web-app
Pod

Common Errors

error: deployment does not have minimum availabilityPod, and
no rollout history foundDeployment, spec.revisionHistoryLimit > 0

Tips

Related Commands