mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
731 B
Plaintext
26 lines
731 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# kubectl rollout
|
|
|
|
> Manage the rollout of a Kubernetes resource (deployments, daemonsets, and statefulsets).
|
|
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_rollout/>.
|
|
|
|
- Start a rolling restart of a resource:
|
|
|
|
`kubectl rollout restart {{resource_type}}/{{resource_name}}`
|
|
|
|
- Watch the rolling update status of a resource:
|
|
|
|
`kubectl rollout status {{resource_type}}/{{resource_name}}`
|
|
|
|
- Roll back a resource to the previous revision:
|
|
|
|
`kubectl rollout undo {{resource_type}}/{{resource_name}}`
|
|
|
|
- View the rollout history of a resource:
|
|
|
|
`kubectl rollout history {{resource_type}}/{{resource_name}}`
|