snippetbashTip
kubectl rollout — Manage the rollout of a Kubernetes resource (deployments, daemonsets, and statefulsets). More inform
Viewed 0 times
theresourcecommandrolloutkubectl rolloutclimanagekubernetes
Problem
How to use the
kubectl rollout command: Manage the rollout of a Kubernetes resource (deployments, daemonsets, and statefulsets). More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_rollout/>.Solution
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}}Code Snippets
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}}Context
tldr-pages: common/kubectl rollout
Revisions (0)
No revisions yet.