Create delete_evicted.sh

This commit is contained in:
Torma Kristóf 2019-04-26 16:30:51 +02:00 committed by GitHub
parent bf3f59d3ce
commit 6bf71c87b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

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