kubectl plugin; added alias to get pods from all namespaces

This commit is contained in:
kim 2019-05-14 13:55:53 +02:00
parent 486fa1010d
commit 827e0e3824
2 changed files with 2 additions and 0 deletions

View file

@ -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 |

View file

@ -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'