diff options
author | Michael Favia <michael@favias.org> | 2017-11-07 08:00:14 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2017-11-07 08:00:14 -0800 |
commit | 790712f6f2cae48e8e57239b9ca9e7ab01254253 (patch) | |
tree | 9ea88f6f873110d7b8b6d7eff34619694a24f5aa /plugins/kubectl | |
parent | dfc03c7bb664229e9b014728f8ee4bc2220ad9d2 (diff) | |
download | zsh-790712f6f2cae48e8e57239b9ca9e7ab01254253.tar.gz zsh-790712f6f2cae48e8e57239b9ca9e7ab01254253.tar.bz2 zsh-790712f6f2cae48e8e57239b9ca9e7ab01254253.zip |
Add aliases for kubectl to speed up repetitive commands. (#5856)
Diffstat (limited to 'plugins/kubectl')
-rw-r--r-- | plugins/kubectl/kubectl.plugin.zsh | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh index 51ae142a2..88177b5a0 100644 --- a/plugins/kubectl/kubectl.plugin.zsh +++ b/plugins/kubectl/kubectl.plugin.zsh @@ -5,3 +5,46 @@ if [ $commands[kubectl] ]; then source <(kubectl completion zsh) fi + +# This command is used ALOT both below and in daily life +alias k=kubectl + +# Drop into an interactive terminal on a container +alias keti='k exec -ti' + +# Manage configuration quickly to switch contexts between local, dev ad staging. +alias kcuc='k config use-context' +alias kcsc='k config set-context' +alias kcdc='k config delete-context' +alias kccc='k config current-context' + +# Pod management. +alias kgp='k get pods' +alias klp='k logs pods' +alias kep='k edit pods' +alias kdp='k describe pods' +alias kdelp='k delete pods' + +# Service management. +alias kgs='k get svc' +alias kes='k edit svc' +alias kds='k describe svc' +alias kdels='k delete svc' + +# Secret management +alias kgsec='k get secret' +alias kdsec='k describe secret' +alias kdelsec='k delete secret' + +# Deployment management. +alias kgd='k get deployment' +alias ked='k edit deployment' +alias kdd='k describe deployment' +alias kdeld='k delete deployment' +alias ksd='k scale deployment' +alias krsd='k rollout status deployment' + +# Rollout management. +alias kgrs='k get rs' +alias krh='k rollout history' +alias kru='k rollout undo' |