Kubernetes:52.kubectl version

概述

[09:41:16 root@ceshi-01 ~ $]kubectl version -h
Print the client and server version information for the current context
打印当前上下文的客户端和服务器版本信息

示例:打印当前上下文的客户端和服务器版本
kubectl version

选项:
      --client=false: Client version only (no server required).
                      仅限客户端版本(无需服务器)。
  -o, --output='': One of 'yaml' or 'json'.
                   yaml or json 格式
      --short=false: Print just the version number.
                     只打印版本号

用法:
    kubectl version [flags] [options]

Use "kubectl options" for a list of global command-line options (applies to all commands).

你可能感兴趣的:(Kubernetes:52.kubectl version)