kubectl get pod -n namespace| grep NodePorts | awk '{print $1}' | xargs kubectl delete pod -n namespace
批量删除NodePorts 状态的pod
于 2024-08-31 20:31:31 首次发布
kubectl get pod -n namespace| grep NodePorts | awk '{print $1}' | xargs kubectl delete pod -n namespace