-
Notifications
You must be signed in to change notification settings - Fork 25
/
usage
216 lines (178 loc) · 8.55 KB
/
usage
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
create configuration files (all, deployment, ingress, namespace, service).
kcon -[a|d|i|n|s]
Delete all pods in a namespace
kdap
drain a node
kdrain node
Run a command in a container or enter the container.
kexec pod [command]
Find everything with (e.g. all resources on a node)
kfind regular expression
Get just pod names in a namespace
kgpns
Find pods with regular expressions
kpfind
Start a restart on pods for a given deployment, will follow the rolling release policy
krd
Search across namespaces to find pod statuses
kstatus -[C|c|f|p|r|s|u]
contexts:
kcc kubectl config get-contexts
kctx kubectx
core:
k kubectl
kc kubectl
kube kubectl
kd kubectl delete
kds kubectl describe
ke kubectl edit
kg kubectl get
kga kubectl get --all-namespaces
kl kubectl logs
klf kubectl logs -f
kns kubens
certificatesigningrequests:
kgcsr kubectl get certificatesigningrequests
clusterrolebindings:
kgcrb kubectl get clusterrolebindings
clusterroles:
kgcr kubectl get clusterroles
componentstatuses:
kgcs kubectl get componentstatus
configmaps:
kdcm kubectl delete configmaps
kdscm kubectl describe configmaps
kecm kubectl edit configmaps
kgcm kubectl get configmaps
kgcmy kubectl get configmaps -o wide
kgacm kubectl get configmaps -o wide --all-namespaces
controllerrevisions:
kgcrv kubectl get controllerrevisions
cronjobs:
kdc kubectl delete cronjobs
kdsc kubectl describe cronjobs
kec kubectl edit cronjobs
kgc kubectl get cronjobs
kgcw watch kubectl get cronjobs
kgcy kubectl get cronjobs -o yaml
kgac kubectl get cronjobs -o wide --all-namespaces
customresourcedefinition:
kgcrd kubectl get customresourcedefinition
daemonsets:
kdds kubectl delete daemonsets
kdsds kubectl describe daemonsets
keds kubectl edit daemonsets
kgds kubectl get daemonsets
kgdsw watch kubectl get daemonsets
kgdsy kubectl get daemonsets -o yaml
kgads kubectl get daemonsets -o wide --all-namespaces
deployments:
kdd kubectl delete deployments
kdsd kubectl describe deployments
ked kubectl edit deployments
kgd kubectl get deployments
kgdw watch kubectl get deployments
kgdy kubectl get deployments -o yaml
endpoints:
kgep kubectl get endpoints
events:
kgev kubectl get events
from file:
kaf kubectl apply -f
kcf kubectl create -f
kdf kubectl delete -f
kef kubectl edit -f
kdsf kubectl describe -f
kgf kubectl get -f
horizontalpodautoscalers:
kghpa kubectl get horizontalpodautoscalers
ingress:
kdi kubectl delete ingress
kdsi kubectl describe ingress
kei kubectl edit ingress
kgai kubectl get ingress -o wide --all-namespaces
kgi kubectl get ingress
kgiy kubectl get ingress -o yaml
jobs:
kdj kubectl delete job
kdsj kubectl describe job
kej kubectl edit jobs
kgj kubectl get jobs
kgjw watch kubectl get jobs
kgjy kubectl get jobs -o yaml
kgaj kubectl get jobs -o wide --all-namespaces
limitranges:
kglr kubectl get limitranges
namespaces:
kdns kubectl delete namespaces
kdsns kubectl describe namespaces
kens kubectl edit namespaces
kgns kubectl get namespaces
kgnsy kubectl get namespaces -o yaml
kns kubens
networkpolicies:
kgnp kubectl get networkpolicies
nodes:
kdsn kubectl describe nodes
ken kubectl edit nodes
kgn kubectl get nodes
kgny kubectl get nodes -o yaml
ktn kubectl top nodes
persistentvolumeclaims:
kdpvc kubectl delete persistentvolumeclaims
kdspvc kubectl describe persistentvolumeclaims
kepvc kubectl edit persistentvolumeclaims
kgapvc kubectl get persistentvolumeclaims -o wide --all-namespaces
kgpvc kubectl get persistentvolumeclaims
kgpvcy kubectl get persistentvolumeclaims -o yaml
persistentvolumes:
kdpv kubectl delete persistentvolumes
kdspv kubectl describe persistentvolumes
kepv kubectl edit persistentvolumes
kgpv kubectl get persistentvolumes
kgpvy kubectl get persistentvolumes -o yaml
poddisruptionbudgets:
kgpdb kubectl get poddisruptionbudgets
podpreset:
kgpp kubectl get podpreset
pods:
kdp kubectl delete pods
kdsp kubectl describe pods
kep kubectl edit pods
kgap kubectl get pods -o wide --all-namespaces
kgp kubectl get pods
kgpw watch kubectl get pods
kgpy kubectl get pods -o yaml
ktp kubectl top pods
podsecuritypolicies:
kpsp kubectl get podsecuritypolicies
podtemplates:
kpt kubectl get podtemplates
replicasets:
krs kubectl get replicasets
replicationcontrollers:
kgrc kubectl get replicationcontrollers
resourcequotas:
kgrq kubectl get resourcequotas
rolebindings:
kgrb kubectl get rolebindings
roles:
kgr kubectl get roles
secrets:
kgs kubectl get secrets
kdssc kubectl describe secrets
kesc kubectl edit secrets
kgasc kubectl get secrets -o wide --all-namespaces
kgsc kubectl get secrets
kgscy kubectl get secrets -o yaml
serviceaccounts:
kgsa kubectl get serviceaccounts
services:
kds kubectl delete service
kdss kubectl describe services
kes kubectl edit services
kgas kubectl get services -o wide --all-namespaces
kgs kubectl get services
kgsy kubectl get services -o yaml
statefulsets:
kgsts kubectl get statefulsets