Create delete_evicted.sh

This commit is contained in:
2019-04-26 16:30:51 +02:00
committed by GitHub
parent bf3f59d3ce
commit 6bf71c87b5

5
delete_evicted.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
for each in $(kubectl get pods|grep Evicted|awk '{print $1}');
do
kubectl delete pods $each
done