Kubernetes常用命令记录

批量删除Terminating Pod

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