kubectl version
Print the client and server version information for the current context. More information: https://kubernetes.io/docs/reference/kubectl/generated/kubectl_version/.
- Print the client and server version information for the current context:
kubectl version
- Print the client version only for the current context:
kubectl version --client
- Output the client and server version information for the current context in JSON:
kubectl version json
- Output the client and server version information for the current context in YAML:
kubectl version yaml
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
