knative-report/delete_evicted.sh
2019-10-02 18:27:25 +02:00

4 lines
118 B
Bash

#!/bin/bash
kubectl get pods --all-namespaces --field-selector 'status.phase==Failed' -o json | kubectl delete -f -