kubectl history

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

语法

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

示例

查看deployment的历史记录

  1. kubectl rollout history deployment/abc

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

  1. 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

K8S中文社区微信公众号

原文: http://docs.kubernetes.org.cn/645.html