Update delete_evicted.sh
This commit is contained in:
parent
44482b1bb3
commit
4b81ed0800
@ -1,5 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
for each in $(kubectl get pods|grep Evicted|awk '{print $1}');
|
|
||||||
do
|
kubectl get po --all-namespaces | awk '{if ($4 ~ /Evicted/) system ("kubectl -n " $1 " delete pods " $2)}'
|
||||||
kubectl delete pods $each
|
|
||||||
done
|
|
||||||
|
Loading…
Reference in New Issue
Block a user