mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 21:39:48 +01:00
Update kubectl.plugin.zsh (#6636)
This commit is contained in:
parent
143cc8f901
commit
94df503863
1 changed files with 6 additions and 0 deletions
|
@ -31,6 +31,9 @@ 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'
|
||||||
|
|
||||||
|
# get pod by label: kgpl "app=myapp" -n myns
|
||||||
|
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 kes='kubectl edit svc'
|
alias kes='kubectl edit svc'
|
||||||
|
@ -61,6 +64,9 @@ alias kgrs='kubectl get rs'
|
||||||
alias krh='kubectl rollout history'
|
alias krh='kubectl rollout history'
|
||||||
alias kru='kubectl rollout undo'
|
alias kru='kubectl rollout undo'
|
||||||
|
|
||||||
|
# Port forwarding
|
||||||
|
alias kpf="k port-forward"
|
||||||
|
|
||||||
# Logs
|
# Logs
|
||||||
alias kl='kubectl logs'
|
alias kl='kubectl logs'
|
||||||
alias klf='kubectl logs -f'
|
alias klf='kubectl logs -f'
|
||||||
|
|
Loading…
Reference in a new issue