kubeless/delete_evicted.sh

4 lines
118 B
Bash
Raw Normal View History

2019-04-26 16:30:51 +02:00
#!/bin/bash
2019-04-26 19:51:52 +02:00
2019-04-30 12:30:22 +02:00
kubectl get pods --all-namespaces --field-selector 'status.phase==Failed' -o json | kubectl delete -f -