This commit is contained in:
Mirco Hacker 2024-08-12 00:44:03 -04:00 committed by GitHub
commit 2a6764a193
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -26,6 +26,8 @@ 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 |
| kg | `kubectl get` | Get resources by filenames, stdin, resources and names, or by resources and label selector |
| kd | `kubectl describe` | Describe resources by filenames, stdin, resources and names, or by resources and label selector |
| | | **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,8 @@ alias kcgc='kubectl config get-contexts'
# General aliases
alias kdel='kubectl delete'
alias kdelf='kubectl delete -f'
alias kg='kubectl get'
alias kd='kubectl describe'
# Pod management.
alias kgp='kubectl get pods'