大家好,又见面了,我是你们的朋友全栈君。
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
清除脚本
#!/bin/bash for pod in $(kubectl get pods|grep Evicted|awk '{print $1}'); do kubectl delete pods $pod done
转载于:https://www.cnblogs.com/fansik/p/10220905.html
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/145801.html原文链接:https://javaforall.net