Kubernetes kubectl rollout status 命令详解

kubectl rollout status

查看资源的状态。

使用—watch = false 来查看当前状态,需要查看特定修订版本状态 请使用--revision = N 来指定。

语法

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

示例

查看deployment的状态

kubectl rollout status deployment/nginx

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 Pin to a specific revision for showing its status. Defaults to 0 (last revision).
watch w true Watch the status of the rollout until it's done.