3.2.29. kubectl version¶
Usage:
kubectl version [flags] [options]
实例:
$ kubectl version
$ kubectl version --client
$ kubectl version -o yaml
$ kubectl version -o json
选项:
-c, --client=false: Client version only (no server required).
-o, --output='': One of 'yaml' or 'json'.
--short=false: Print just the version number.