mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
Clear evicted pods
This commit is contained in:
parent
efafef8495
commit
86f5b72d66
1 changed files with 1 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ alias kep='kubectl edit pods'
|
|||
alias kdp='kubectl describe pods'
|
||||
alias kdelp='kubectl delete pods'
|
||||
alias kgpall='kubectl get pods --all-namespaces -o wide'
|
||||
alias kclearevicted="kubectl get pods --all-namespaces -o json | jq '.items[] | select(.status.reason!=null) | select(.status.reason | contains(\"Evicted\")) | \"kubectl delete pods \(.metadata.name) -n \(.metadata.namespace)\"' | xargs -n 1 bash -c"
|
||||
|
||||
# get pod by label: kgpl "app=myapp" -n myns
|
||||
alias kgpl='kgp -l'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue