kubeless/delete_evicted.sh

4 lines
118 B
Bash

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