Skip to content

Commit c895ba3

Browse files
authored
kubectl-{api-versions, version}: add page (#18415)
Signed-off-by: varnika <[email protected]>
1 parent 0b35baf commit c895ba3

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# kubectl api-versions
2+
3+
> Print the supported API versions on the server, in the form of "group/version".
4+
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_api-versions>.
5+
6+
- Print the supported API versions on the server, in the form of "group/version":
7+
8+
`kubectl api-versions`

pages/common/kubectl-version.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# kubectl version
2+
3+
> Print the client and server version information for the current context.
4+
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_version>.
5+
6+
- Print the client and server version information for the current context:
7+
8+
`kubectl version`
9+
10+
- Print the client version only for the current context:
11+
12+
`kubectl version --client`
13+
14+
- Output the client and server version information for the current context in JSON:
15+
16+
`kubectl version {{[-o|--output]}} json`
17+
18+
- Output the client and server version information for the current context in YAML:
19+
20+
`kubectl version {{[-o|--output]}} yaml`

0 commit comments

Comments
 (0)