Update delete_evicted.sh
This commit is contained in:
parent
24af65e1a4
commit
da9091e70a
@ -1,3 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
kubectl get po --all-namespaces | awk '{if ($4 ~ /Evicted/) system ("kubectl -n " $1 " delete pods " $2)}'
|
||||
kubectl get pods --all-namespaces --field-selector 'status.phase==Failed' -o json | kubectl delete -f -
|
||||
|
Loading…
Reference in New Issue
Block a user