clear not running pod

kubectl get pods -A|grep -v Running |awk '{print "pod "$2" -n "$1" --grace-period=0 --force"}' |xargs -l kubectl delete

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注