删除 bad pod

kubectl  get pod -n crawl|egrep "Error|Terminating|ContainerStatusUnknown|CrashLoopBackOff|Terminating|Evicted"|awk -F " " '{print $1}'|xargs kubectl -n crawl delete pod --force

 

posted @ 2023-05-17 18:51  淋哥  阅读(30)  评论(0编辑  收藏  举报