From 827e0e382469f6fa80976c30d32c44a3f61a0b87 Mon Sep 17 00:00:00 2001 From: kim Date: Tue, 14 May 2019 13:55:53 +0200 Subject: [PATCH] kubectl plugin; added alias to get pods from all namespaces --- plugins/kubectl/README.md | 1 + plugins/kubectl/kubectl.plugin.zsh | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/kubectl/README.md b/plugins/kubectl/README.md index 3343f0195..742636e27 100644 --- a/plugins/kubectl/README.md +++ b/plugins/kubectl/README.md @@ -27,6 +27,7 @@ plugins=(... kubectl) | kdelf | `kubectl delete -f` | Delete a pod using the type and name specified in -f argument | | | | **Pod management** | | kgp | `kubectl get pods` | List all pods in ps output format | +| kgpa | `kubectl get pods --all-namespaces` | List all pods of all namespaces in ps output format | | kgpw | `kgp --watch` | After listing/getting the requested object, watch for changes | | kgpwide | `kgp -o wide` | Output in plain-text format with any additional information. For pods, the node name is included | | kep | `kubectl edit pods` | Edit pods from the default editor | diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh index ab7a1a0a4..94f31769e 100644 --- a/plugins/kubectl/kubectl.plugin.zsh +++ b/plugins/kubectl/kubectl.plugin.zsh @@ -34,6 +34,7 @@ alias kdelf='kubectl delete -f' # Pod management. alias kgp='kubectl get pods' +alias kgpa='kubectl get pods --all-namespaces' alias kgpw='kgp --watch' alias kgpwide='kgp -o wide' alias kep='kubectl edit pods'