diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh index 97e429aa..9f2d5f0b 100644 --- a/plugins/kubectl/kubectl.plugin.zsh +++ b/plugins/kubectl/kubectl.plugin.zsh @@ -26,6 +26,7 @@ alias kgp='k get pods' alias kep='k edit pods' alias kdp='k describe pods' alias kdelp='k delete pods' +alias kgpl='function _kgpl(){ label=$1; shift; kgp -l $label $*; };_kgpl' # Service management. alias kgs='k get svc' @@ -51,6 +52,17 @@ alias kgrs='k get rs' alias krh='k rollout history' alias kru='k rollout undo' +# Node management +alias kgn='k get nodes' +alias kdn='k describe node' + +# Tools for accessing all information +alias kga='k get all' +alias kgaa='k get all --all-namespaces' + +# Forward a local port to a pod +alias kpf='k port-forward' + # Logs alias kl='k logs' alias klf='k logs -f'