Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
7e93b840
Commit
7e93b840
authored
Oct 02, 2018
by
Serdar Dalgıç
Committed by
Marc Cornellà
Oct 02, 2018
Browse files
kubectl: add aliases for delete and watch/wide options (#6790)
parent
e5915858
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/kubectl/kubectl.plugin.zsh
View file @
7e93b840
...
@@ -25,8 +25,14 @@ alias kcsc='kubectl config set-context'
...
@@ -25,8 +25,14 @@ alias kcsc='kubectl config set-context'
alias
kcdc
=
'kubectl config delete-context'
alias
kcdc
=
'kubectl config delete-context'
alias
kccc
=
'kubectl config current-context'
alias
kccc
=
'kubectl config current-context'
# General aliases
alias
kdel
=
'kubectl delete'
alias
kdelf
=
'kubectl delete -f'
# Pod management.
# Pod management.
alias
kgp
=
'kubectl get pods'
alias
kgp
=
'kubectl get pods'
alias
kgpw
=
'kgp --watch'
alias
kgpwide
=
'kgp -o wide'
alias
kep
=
'kubectl edit pods'
alias
kep
=
'kubectl edit pods'
alias
kdp
=
'kubectl describe pods'
alias
kdp
=
'kubectl describe pods'
alias
kdelp
=
'kubectl delete pods'
alias
kdelp
=
'kubectl delete pods'
...
@@ -36,6 +42,8 @@ alias kgpl='function _kgpl(){ label=$1; shift; kgp -l $label $*; };_kgpl'
...
@@ -36,6 +42,8 @@ alias kgpl='function _kgpl(){ label=$1; shift; kgp -l $label $*; };_kgpl'
# Service management.
# Service management.
alias
kgs
=
'kubectl get svc'
alias
kgs
=
'kubectl get svc'
alias
kgsw
=
'kgs --watch'
alias
kgswide
=
'kgs -o wide'
alias
kes
=
'kubectl edit svc'
alias
kes
=
'kubectl edit svc'
alias
kds
=
'kubectl describe svc'
alias
kds
=
'kubectl describe svc'
alias
kdels
=
'kubectl delete svc'
alias
kdels
=
'kubectl delete svc'
...
@@ -65,6 +73,8 @@ alias kdelsec='kubectl delete secret'
...
@@ -65,6 +73,8 @@ alias kdelsec='kubectl delete secret'
# Deployment management.
# Deployment management.
alias
kgd
=
'kubectl get deployment'
alias
kgd
=
'kubectl get deployment'
alias
kgdw
=
'kgd --watch'
alias
kgdwide
=
'kgd -o wide'
alias
ked
=
'kubectl edit deployment'
alias
ked
=
'kubectl edit deployment'
alias
kdd
=
'kubectl describe deployment'
alias
kdd
=
'kubectl describe deployment'
alias
kdeld
=
'kubectl delete deployment'
alias
kdeld
=
'kubectl delete deployment'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment