• 欢迎访问蜷缩的蜗牛博客 蜷缩的蜗牛
  • 微信搜索: 蜷缩的蜗牛 | 联系站长 kbsonlong@qq.com
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

kubectl rollout undo(回滚版本)

kubectl命令表 蜷缩的蜗牛 3个月前 (06-20) 11次浏览 已收录

kubectl rollout undo

回滚到之前的版本。

语法

$ undo (TYPE NAME | TYPE/NAME) [flags]

示例

回滚到之前的 deployment 版本

kubectl rollout undo deployment/abc
kubectl rollout undo --dry-run=true deployment/abc

回滚到 daemonset 修订 3 版本

kubectl rollout undo daemonset/abc --to-revision=3

Flags

Name Shorthand Default Usage
dry-run false If true, only print the object that would be sent, without sending it.
filename f [] Filename, directory, or URL to files identifying the resource to get from a server.
recursive R false Process the directory used in -f, –filename recursively. Useful when you want to manage related manifests organized within the same directory.
to-revision 0 The revision to rollback to. Default to 0 (last revision).

 

K8S 中文社区微信公众号

本文转载自 kubectl rollout undo(回滚版本)


蜷缩的蜗牛 , 版权所有丨如未注明 , 均为原创丨 转载请注明kubectl rollout undo(回滚版本)
喜欢 (0)
[]
分享 (0)