kubectl-rollout

Manage the rollout of a Kubernetes resource (deployments, daemonsets, and statefulsets).

TLDR

Start a rolling restart of a resource

$ kubectl rollout restart [resource_type]/[resource_name]
copy


Watch the rolling update status of a resource
$ kubectl rollout status [resource_type]/[resource_name]
copy


Roll back a resource to the previous revision
$ kubectl rollout undo [resource_type]/[resource_name]
copy


View the rollout history of a resource
$ kubectl rollout history [resource_type]/[resource_name]
copy

Copied to clipboard