version
Print the client and server versions for the current context
kubectl version
Print the client and server version information for the current context.
Usage
$ kubectl version
Flags
Name | Shorthand | Default | Usage |
---|---|---|---|
client | false | If true, shows client version only (no server required). | |
output | o | One of ‘yaml’ or ‘json’. | |
short | false | If true, print just the version number. |
当前内容版权归 Kubernetes 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Kubernetes .