This commit is contained in:
Samreen Zarroug 2024-09-02 10:50:50 +02:00 committed by GitHub
commit 5580b1022f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -26,6 +26,9 @@ plugins=(... kubectl)
| | | **General aliases** |
| kdel | `kubectl delete` | Delete resources by filenames, stdin, resources and names, or by resources and label selector |
| kdelf | `kubectl delete -f` | Delete a pod using the type and name specified in -f argument |
| kdelf! | `kubectl delete -f --grace-period=0`| Delete a pod using the type and name specified in -f argument with no grace period |
| kd | `kubectl describe ` | General describe |
| kg | `kubectl get` | General get |
| | | **Pod management** |
| kgp | `kubectl get pods` | List all pods in ps output format |
| kgpw | `kgp --watch` | After listing/getting the requested object, watch for changes |

View file

@ -36,6 +36,9 @@ alias kcgc='kubectl config get-contexts'
# General aliases
alias kdel='kubectl delete'
alias kdelf='kubectl delete -f'
alias kdelf!='kubectl delete -f --grace-period=0'
alias kd='kubectl describe'
alias kg='kubectl get'
# Pod management.
alias kgp='kubectl get pods'