knative-report/delete_evicted.sh

4 lines
118 B
Bash
Raw Normal View History

2019-10-02 18:27:25 +02:00
#!/bin/bash
kubectl get pods --all-namespaces --field-selector 'status.phase==Failed' -o json | kubectl delete -f -