Skip to content

Commit 846bf39

Browse files
authored
kubectl: add option placeholders (#17608)
1 parent 3d0deb1 commit 846bf39

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

pages/common/kubectl-get.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,31 @@
55
66
- Get all namespaces in the current cluster:
77

8-
`kubectl get namespaces`
8+
`kubectl get {{[ns|namespaces]}}`
99

1010
- Get nodes in a specified namespace:
1111

12-
`kubectl get nodes {{[-n|--namespace]}} {{namespace}}`
12+
`kubectl get {{[no|nodes]}} {{[-n|--namespace]}} {{namespace}}`
1313

1414
- Get pods in a specified namespace:
1515

16-
`kubectl get pods {{[-n|--namespace]}} {{namespace}}`
16+
`kubectl get {{[po|pods]}} {{[-n|--namespace]}} {{namespace}}`
1717

1818
- Get deployments in a specified namespace:
1919

20-
`kubectl get deployments {{[-n|--namespace]}} {{namespace}}`
20+
`kubectl get {{[deploy|deployments]}} {{[-n|--namespace]}} {{namespace}}`
2121

2222
- Get services in a specified namespace:
2323

24-
`kubectl get services {{[-n|--namespace]}} {{namespace}}`
24+
`kubectl get {{[svc|services]}} {{[-n|--namespace]}} {{namespace}}`
2525

26-
- Get all resources in a specified namespace:
26+
- Get other resources:
2727

28-
`kubectl get all {{[-n|--namespace]}} {{namespace}}`
28+
`kubectl get {{persistentvolumeclaims|secret}}`
29+
30+
- Get all resources in all namespaces:
31+
32+
`kubectl get all {{[-A|--all-namespaces]}}`
2933

3034
- Get Kubernetes objects defined in a YAML manifest file:
3135

0 commit comments

Comments
 (0)