k8s 数据清理

批量删除状态为 Evicted 的 pod:

$ kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod

批量删除状态为 Terminating 的 pod:

$ kubectl get pods | grep Terminating | awk '{print $1}' | xargs kubectl delete pod --grace-period=0 --force