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)}'
Alınan Bilginin Karşılığı Öğretmektir . . .
Yazar: Yakup KALEBAŞI · 29 Nisan 2025
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)}'
Etiketler: K8S
Daha fazla