# kubectl rollout history 命令详解

查看之前推出的版本(历史版本)。

# 语法

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

# 示例

查看 deployment 的历史记录

kubectl rollout history deployment/abc

查看 daemonset 修订版 3 的详细信息

kubectl rollout history daemonset/abc --revision=3

# Flags

Name Shorthand Default Usage
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.
revision 0 See the details, including podTemplate of the revision specified
Last Updated: 6/17/2023, 6:57:19 PM