File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 5
5
6
6
- Get all namespaces in the current cluster:
7
7
8
- ` kubectl get namespaces `
8
+ ` kubectl get {{[ns| namespaces]}} `
9
9
10
10
- Get nodes in a specified namespace:
11
11
12
- ` kubectl get nodes {{[-n|--namespace]}} {{namespace}} `
12
+ ` kubectl get {{[no| nodes]}} {{[-n|--namespace]}} {{namespace}} `
13
13
14
14
- Get pods in a specified namespace:
15
15
16
- ` kubectl get pods {{[-n|--namespace]}} {{namespace}} `
16
+ ` kubectl get {{[po| pods]}} {{[-n|--namespace]}} {{namespace}} `
17
17
18
18
- Get deployments in a specified namespace:
19
19
20
- ` kubectl get deployments {{[-n|--namespace]}} {{namespace}} `
20
+ ` kubectl get {{[deploy| deployments]}} {{[-n|--namespace]}} {{namespace}} `
21
21
22
22
- Get services in a specified namespace:
23
23
24
- ` kubectl get services {{[-n|--namespace]}} {{namespace}} `
24
+ ` kubectl get {{[svc| services]}} {{[-n|--namespace]}} {{namespace}} `
25
25
26
- - Get all resources in a specified namespace :
26
+ - Get other resources:
27
27
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]}} `
29
33
30
34
- Get Kubernetes objects defined in a YAML manifest file:
31
35
You can’t perform that action at this time.
0 commit comments