forked from ahmetb/kubectl-aliases
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kubectl_aliases
278 lines (277 loc) · 13.8 KB
/
.kubectl_aliases
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
# Copyright 2019 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
alias k='kubectl'
alias ka='kubectl apply --recursive -f'
alias kctx='kubectl ctx'
alias kctxc='kubectl ctx -c'
alias kdel='kubectl delete --wait=false'
alias kdelcm='kubectl delete --wait=false configmap'
alias kdelcmf='kubectl delete --wait=false configmap --force --grace-period=0'
alias kdelcmfl='kubectl delete --wait=false configmap --force --grace-period=0 -l'
alias kdelcml='kubectl delete --wait=false configmap -l'
alias kdeldep='kubectl delete --wait=false deployment'
alias kdeldepf='kubectl delete --wait=false deployment --force --grace-period=0'
alias kdeldepfl='kubectl delete --wait=false deployment --force --grace-period=0 -l'
alias kdeldepl='kubectl delete --wait=false deployment -l'
alias kdelf='kubectl delete --wait=false --force --grace-period=0'
alias kdelfl='kubectl delete --wait=false --force --grace-period=0 -l'
alias kdell='kubectl delete --wait=false -l'
alias kdelpo='kubectl delete --wait=false pods'
alias kdelpof='kubectl delete --wait=false pods --force --grace-period=0'
alias kdelpofl='kubectl delete --wait=false pods --force --grace-period=0 -l'
alias kdelpol='kubectl delete --wait=false pods -l'
alias kdelsvc='kubectl delete --wait=false service'
alias kdelsvcf='kubectl delete --wait=false service --force --grace-period=0'
alias kdelsvcfl='kubectl delete --wait=false service --force --grace-period=0 -l'
alias kdelsvcl='kubectl delete --wait=false service -l'
alias kdes='kubectl describe'
alias kdescm='kubectl describe configmap'
alias kdescmg='kubectl describe configmap | grep'
alias kdescml='kubectl describe configmap -l'
alias kdesdep='kubectl describe deployment'
alias kdesdepg='kubectl describe deployment | grep'
alias kdesdepl='kubectl describe deployment -l'
alias kdesg='kubectl describe | grep'
alias kdesl='kubectl describe -l'
alias kdesnp='kubectl describe networkpolicy'
alias kdesnpg='kubectl describe networkpolicy | grep'
alias kdesnpl='kubectl describe networkpolicy -l'
alias kdespo='kubectl describe pods'
alias kdespog='kubectl describe pods | grep'
alias kdespol='kubectl describe pods -l'
alias kdessvc='kubectl describe service'
alias kdessvcg='kubectl describe service | grep'
alias kdessvcl='kubectl describe service -l'
alias kex='kubectl exec -i -t'
alias kg='kubectl get'
alias kgcm='kubectl get configmap'
alias kgcmg='kubectl get configmap | grep'
alias kgcml='kubectl get configmap -l'
alias kgcmow='kubectl get configmap -o=wide'
alias kgcmowg='kubectl get configmap -o=wide | grep'
alias kgcmowl='kubectl get configmap -o=wide -l'
alias kgcmoy='kubectl get configmap -o=yaml'
alias kgcmoyg='kubectl get configmap -o=yaml | grep'
alias kgcmoyl='kubectl get configmap -o=yaml -l'
alias kgcmw='kubectl get configmap --watch'
alias kgcmwg='kubectl get configmap --watch | grep'
alias kgcmwl='kubectl get configmap --watch -l'
alias kgcmwow='kubectl get configmap --watch -o=wide'
alias kgcmwowg='kubectl get configmap --watch -o=wide | grep'
alias kgcmwowl='kubectl get configmap --watch -o=wide -l'
alias kgcmwoy='kubectl get configmap --watch -o=yaml'
alias kgcmwoyg='kubectl get configmap --watch -o=yaml | grep'
alias kgcmwoyl='kubectl get configmap --watch -o=yaml -l'
alias kgdep='kubectl get deployment'
alias kgdepg='kubectl get deployment | grep'
alias kgdepl='kubectl get deployment -l'
alias kgdepow='kubectl get deployment -o=wide'
alias kgdepowg='kubectl get deployment -o=wide | grep'
alias kgdepowl='kubectl get deployment -o=wide -l'
alias kgdepowsl='kubectl get deployment -o=wide --show-labels'
alias kgdepowslg='kubectl get deployment -o=wide --show-labels | grep'
alias kgdepowsll='kubectl get deployment -o=wide --show-labels -l'
alias kgdepoy='kubectl get deployment -o=yaml'
alias kgdepoyg='kubectl get deployment -o=yaml | grep'
alias kgdepoyl='kubectl get deployment -o=yaml -l'
alias kgdepsl='kubectl get deployment --show-labels'
alias kgdepslg='kubectl get deployment --show-labels | grep'
alias kgdepsll='kubectl get deployment --show-labels -l'
alias kgdepslow='kubectl get deployment --show-labels -o=wide'
alias kgdepslowg='kubectl get deployment --show-labels -o=wide | grep'
alias kgdepslowl='kubectl get deployment --show-labels -o=wide -l'
alias kgdepslw='kubectl get deployment --show-labels --watch'
alias kgdepslwg='kubectl get deployment --show-labels --watch | grep'
alias kgdepslwl='kubectl get deployment --show-labels --watch -l'
alias kgdepslwow='kubectl get deployment --show-labels --watch -o=wide'
alias kgdepslwowg='kubectl get deployment --show-labels --watch -o=wide | grep'
alias kgdepslwowl='kubectl get deployment --show-labels --watch -o=wide -l'
alias kgdepw='kubectl get deployment --watch'
alias kgdepwg='kubectl get deployment --watch | grep'
alias kgdepwl='kubectl get deployment --watch -l'
alias kgdepwow='kubectl get deployment --watch -o=wide'
alias kgdepwowg='kubectl get deployment --watch -o=wide | grep'
alias kgdepwowl='kubectl get deployment --watch -o=wide -l'
alias kgdepwowsl='kubectl get deployment --watch -o=wide --show-labels'
alias kgdepwowslg='kubectl get deployment --watch -o=wide --show-labels | grep'
alias kgdepwowsll='kubectl get deployment --watch -o=wide --show-labels -l'
alias kgdepwoy='kubectl get deployment --watch -o=yaml'
alias kgdepwoyg='kubectl get deployment --watch -o=yaml | grep'
alias kgdepwoyl='kubectl get deployment --watch -o=yaml -l'
alias kgdepwsl='kubectl get deployment --watch --show-labels'
alias kgdepwslg='kubectl get deployment --watch --show-labels | grep'
alias kgdepwsll='kubectl get deployment --watch --show-labels -l'
alias kgdepwslow='kubectl get deployment --watch --show-labels -o=wide'
alias kgdepwslowg='kubectl get deployment --watch --show-labels -o=wide | grep'
alias kgdepwslowl='kubectl get deployment --watch --show-labels -o=wide -l'
alias kgg='kubectl get | grep'
alias kgl='kubectl get -l'
alias kgnp='kubectl get networkpolicy'
alias kgnpg='kubectl get networkpolicy | grep'
alias kgnpl='kubectl get networkpolicy -l'
alias kgnpow='kubectl get networkpolicy -o=wide'
alias kgnpowg='kubectl get networkpolicy -o=wide | grep'
alias kgnpowl='kubectl get networkpolicy -o=wide -l'
alias kgnpoy='kubectl get networkpolicy -o=yaml'
alias kgnpoyg='kubectl get networkpolicy -o=yaml | grep'
alias kgnpoyl='kubectl get networkpolicy -o=yaml -l'
alias kgnpw='kubectl get networkpolicy --watch'
alias kgnpwg='kubectl get networkpolicy --watch | grep'
alias kgnpwl='kubectl get networkpolicy --watch -l'
alias kgnpwow='kubectl get networkpolicy --watch -o=wide'
alias kgnpwowg='kubectl get networkpolicy --watch -o=wide | grep'
alias kgnpwowl='kubectl get networkpolicy --watch -o=wide -l'
alias kgnpwoy='kubectl get networkpolicy --watch -o=yaml'
alias kgnpwoyg='kubectl get networkpolicy --watch -o=yaml | grep'
alias kgnpwoyl='kubectl get networkpolicy --watch -o=yaml -l'
alias kgow='kubectl get -o=wide'
alias kgowg='kubectl get -o=wide | grep'
alias kgowl='kubectl get -o=wide -l'
alias kgowsl='kubectl get -o=wide --show-labels'
alias kgowslg='kubectl get -o=wide --show-labels | grep'
alias kgowsll='kubectl get -o=wide --show-labels -l'
alias kgoy='kubectl get -o=yaml'
alias kgoyg='kubectl get -o=yaml | grep'
alias kgoyl='kubectl get -o=yaml -l'
alias kgpo='kubectl get pods'
alias kgpog='kubectl get pods | grep'
alias kgpol='kubectl get pods -l'
alias kgpoow='kubectl get pods -o=wide'
alias kgpoowg='kubectl get pods -o=wide | grep'
alias kgpoowl='kubectl get pods -o=wide -l'
alias kgpoowsl='kubectl get pods -o=wide --show-labels'
alias kgpoowslg='kubectl get pods -o=wide --show-labels | grep'
alias kgpoowsll='kubectl get pods -o=wide --show-labels -l'
alias kgpooy='kubectl get pods -o=yaml'
alias kgpooyg='kubectl get pods -o=yaml | grep'
alias kgpooyl='kubectl get pods -o=yaml -l'
alias kgposl='kubectl get pods --show-labels'
alias kgposlg='kubectl get pods --show-labels | grep'
alias kgposll='kubectl get pods --show-labels -l'
alias kgposlow='kubectl get pods --show-labels -o=wide'
alias kgposlowg='kubectl get pods --show-labels -o=wide | grep'
alias kgposlowl='kubectl get pods --show-labels -o=wide -l'
alias kgposlw='kubectl get pods --show-labels --watch'
alias kgposlwg='kubectl get pods --show-labels --watch | grep'
alias kgposlwl='kubectl get pods --show-labels --watch -l'
alias kgposlwow='kubectl get pods --show-labels --watch -o=wide'
alias kgposlwowg='kubectl get pods --show-labels --watch -o=wide | grep'
alias kgposlwowl='kubectl get pods --show-labels --watch -o=wide -l'
alias kgpow='kubectl get pods --watch'
alias kgpowg='kubectl get pods --watch | grep'
alias kgpowl='kubectl get pods --watch -l'
alias kgpowow='kubectl get pods --watch -o=wide'
alias kgpowowg='kubectl get pods --watch -o=wide | grep'
alias kgpowowl='kubectl get pods --watch -o=wide -l'
alias kgpowowsl='kubectl get pods --watch -o=wide --show-labels'
alias kgpowowslg='kubectl get pods --watch -o=wide --show-labels | grep'
alias kgpowowsll='kubectl get pods --watch -o=wide --show-labels -l'
alias kgpowoy='kubectl get pods --watch -o=yaml'
alias kgpowoyg='kubectl get pods --watch -o=yaml | grep'
alias kgpowoyl='kubectl get pods --watch -o=yaml -l'
alias kgpowsl='kubectl get pods --watch --show-labels'
alias kgpowslg='kubectl get pods --watch --show-labels | grep'
alias kgpowsll='kubectl get pods --watch --show-labels -l'
alias kgpowslow='kubectl get pods --watch --show-labels -o=wide'
alias kgpowslowg='kubectl get pods --watch --show-labels -o=wide | grep'
alias kgpowslowl='kubectl get pods --watch --show-labels -o=wide -l'
alias kgsl='kubectl get --show-labels'
alias kgslg='kubectl get --show-labels | grep'
alias kgsll='kubectl get --show-labels -l'
alias kgslow='kubectl get --show-labels -o=wide'
alias kgslowg='kubectl get --show-labels -o=wide | grep'
alias kgslowl='kubectl get --show-labels -o=wide -l'
alias kgslw='kubectl get --show-labels --watch'
alias kgslwg='kubectl get --show-labels --watch | grep'
alias kgslwl='kubectl get --show-labels --watch -l'
alias kgslwow='kubectl get --show-labels --watch -o=wide'
alias kgslwowg='kubectl get --show-labels --watch -o=wide | grep'
alias kgslwowl='kubectl get --show-labels --watch -o=wide -l'
alias kgsvc='kubectl get service'
alias kgsvcg='kubectl get service | grep'
alias kgsvcl='kubectl get service -l'
alias kgsvcow='kubectl get service -o=wide'
alias kgsvcowg='kubectl get service -o=wide | grep'
alias kgsvcowl='kubectl get service -o=wide -l'
alias kgsvcoy='kubectl get service -o=yaml'
alias kgsvcoyg='kubectl get service -o=yaml | grep'
alias kgsvcoyl='kubectl get service -o=yaml -l'
alias kgsvcw='kubectl get service --watch'
alias kgsvcwg='kubectl get service --watch | grep'
alias kgsvcwl='kubectl get service --watch -l'
alias kgsvcwow='kubectl get service --watch -o=wide'
alias kgsvcwowg='kubectl get service --watch -o=wide | grep'
alias kgsvcwowl='kubectl get service --watch -o=wide -l'
alias kgsvcwoy='kubectl get service --watch -o=yaml'
alias kgsvcwoyg='kubectl get service --watch -o=yaml | grep'
alias kgsvcwoyl='kubectl get service --watch -o=yaml -l'
alias kgw='kubectl get --watch'
alias kgwg='kubectl get --watch | grep'
alias kgwl='kubectl get --watch -l'
alias kgwow='kubectl get --watch -o=wide'
alias kgwowg='kubectl get --watch -o=wide | grep'
alias kgwowl='kubectl get --watch -o=wide -l'
alias kgwowsl='kubectl get --watch -o=wide --show-labels'
alias kgwowslg='kubectl get --watch -o=wide --show-labels | grep'
alias kgwowsll='kubectl get --watch -o=wide --show-labels -l'
alias kgwoy='kubectl get --watch -o=yaml'
alias kgwoyg='kubectl get --watch -o=yaml | grep'
alias kgwoyl='kubectl get --watch -o=yaml -l'
alias kgwsl='kubectl get --watch --show-labels'
alias kgwslg='kubectl get --watch --show-labels | grep'
alias kgwsll='kubectl get --watch --show-labels -l'
alias kgwslow='kubectl get --watch --show-labels -o=wide'
alias kgwslowg='kubectl get --watch --show-labels -o=wide | grep'
alias kgwslowl='kubectl get --watch --show-labels -o=wide -l'
alias kk='kubectl krew'
alias klo='kubectl logs'
alias klof='kubectl logs -f'
alias klofp='kubectl logs -f -p'
alias klofpt='kubectl logs -f -p --tail=10'
alias klofpt2='kubectl logs -f -p --tail=100'
alias klofpt3='kubectl logs -f -p --tail=1000'
alias kloft='kubectl logs -f --tail=10'
alias kloftp='kubectl logs -f --tail=10 -p'
alias kloft2='kubectl logs -f --tail=100'
alias kloft2p='kubectl logs -f --tail=100 -p'
alias kloft3='kubectl logs -f --tail=1000'
alias kloft3p='kubectl logs -f --tail=1000 -p'
alias klop='kubectl logs -p'
alias klopf='kubectl logs -p -f'
alias klopft='kubectl logs -p -f --tail=10'
alias klopft2='kubectl logs -p -f --tail=100'
alias klopft3='kubectl logs -p -f --tail=1000'
alias klopt='kubectl logs -p --tail=10'
alias kloptf='kubectl logs -p --tail=10 -f'
alias klopt2='kubectl logs -p --tail=100'
alias klopt2f='kubectl logs -p --tail=100 -f'
alias klopt3='kubectl logs -p --tail=1000'
alias klopt3f='kubectl logs -p --tail=1000 -f'
alias klot='kubectl logs --tail=10'
alias klotf='kubectl logs --tail=10 -f'
alias klotfp='kubectl logs --tail=10 -f -p'
alias klotp='kubectl logs --tail=10 -p'
alias klotpf='kubectl logs --tail=10 -p -f'
alias klot2='kubectl logs --tail=100'
alias klot2f='kubectl logs --tail=100 -f'
alias klot2fp='kubectl logs --tail=100 -f -p'
alias klot2p='kubectl logs --tail=100 -p'
alias klot2pf='kubectl logs --tail=100 -p -f'
alias klot3='kubectl logs --tail=1000'
alias klot3f='kubectl logs --tail=1000 -f'
alias klot3fp='kubectl logs --tail=1000 -f -p'
alias klot3p='kubectl logs --tail=1000 -p'
alias klot3pf='kubectl logs --tail=1000 -p -f'
alias kns='kubectl ns'
alias knsc='kubectl ns -c'