Difference between revisions of "Kubectl rollout --help"
Jump to navigation
Jump to search
(5 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | |||
− | |||
Manage the rollout of one or many resources. | Manage the rollout of one or many resources. | ||
Valid resource types include: | Valid resource types include: | ||
− | * deployments | + | * [[deployments]] |
− | * daemonsets | + | * [[Kubernetes DaemonSets|daemonsets]] |
− | * statefulsets | + | * [[statefulsets]] |
− | + | ||
Examples: | Examples: | ||
# Rollback to the previous deployment | # Rollback to the previous deployment | ||
kubectl rollout undo deployment/abc | kubectl rollout undo deployment/abc | ||
− | + | ||
# Check the rollout status of a daemonset | # Check the rollout status of a daemonset | ||
kubectl rollout status daemonset/foo | kubectl rollout status daemonset/foo | ||
− | + | ||
# Restart a deployment | # Restart a deployment | ||
kubectl rollout restart deployment/abc | kubectl rollout restart deployment/abc | ||
− | + | ||
# Restart deployments with the app=nginx label | # Restart deployments with the app=nginx label | ||
kubectl rollout restart deployment --selector=app=nginx | kubectl rollout restart deployment --selector=app=nginx | ||
− | + | ||
Available Commands: | Available Commands: | ||
history View rollout history | history View rollout history | ||
Line 30: | Line 28: | ||
status Show the status of the rollout | status Show the status of the rollout | ||
undo Undo a previous rollout | undo Undo a previous rollout | ||
− | + | ||
Usage: | Usage: | ||
kubectl rollout SUBCOMMAND [options] | kubectl rollout SUBCOMMAND [options] | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Use "kubectl <command> --help" for more information about a given command. | Use "kubectl <command> --help" for more information about a given command. | ||
Use "kubectl options" for a list of global command-line options (applies to all commands). | Use "kubectl options" for a list of global command-line options (applies to all commands). | ||
− | |||
Latest revision as of 15:02, 21 December 2022
Manage the rollout of one or many resources. Valid resource types include: * deployments * daemonsets * statefulsets Examples: # Rollback to the previous deployment kubectl rollout undo deployment/abc # Check the rollout status of a daemonset kubectl rollout status daemonset/foo # Restart a deployment kubectl rollout restart deployment/abc # Restart deployments with the app=nginx label kubectl rollout restart deployment --selector=app=nginx Available Commands: history View rollout history pause Mark the provided resource as paused restart Restart a resource resume Resume a paused resource status Show the status of the rollout undo Undo a previous rollout Usage: kubectl rollout SUBCOMMAND [options] Use "kubectl <command> --help" for more information about a given command. Use "kubectl options" for a list of global command-line options (applies to all commands).
See also[edit]
kubectl rollout [ status | restart | resume | pause | history | undo ], kubectl rollout --help
- Deployment, CD, Spinnaker, AWS CodeDeploy, Tekton, Argo CD, Continuous Deployment, Continuous Delivery, Blue-green deployment, Red-black deployment, Feature toggle Continuous Delivery Foundation, ARA, A/b testing, Canary
Advertising: