概述
[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).