Kubernetes 清除持续 Terminating 状态的Pods

强制删除所有Pods -- 谨慎使用

kubectl  get pods -n ava-job | grep Error | awk '{print$1}'| xargs kubectl delete -n ava-job pods --grace-period=0 --force

posted @ 2019-11-25 11:35  JokerJason  阅读(975)  评论(0编辑  收藏  举报

It's not who you are underneath, it's what you do that defines you

Brick walls are there for a reason :they let us prove how badly we want things