k8s toplu silme

kubectl get po --all-namespaces | awk '{if ($4 ~ /Evicted/) system ("kubectl -n " $1 " delete pods " $2)}'

kubectl get po --all-namespaces | awk '{if ($4 ~ /Completed/) system ("kubectl -n " $1 " delete pods " $2)}'

Bunlar da hoşunuza gidebilir...