语法
[14:36:53 root@ceshi-01 ~ $]kubectl rollout --help
Manage the rollout of a resource.
管理资源的部署。
有效的资源类型包括:
* deployments
* daemonsets
* statefulsets
示例:
# Rollback to the previous deployment
# 回滚到上一个部署
kubectl rollout undo deployment/abc
# Check the rollout status of a daemonset
# 检查守护进程的推出状态
kubectl rollout status daemonset/foo
可用命令:
history 显示 rollout 历史
pause 标记提供的 resource 为中止状态
restart Restart a resource
重新启动资源
resume 继续一个停止的 resource
status 显示 rollout 的状态
undo 撤销上一次的 rollout
用法:
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).