# 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.
Last Updated: 6/17/2023, 6:57:19 PM