很多POD处于evicted状态

1
2
3
4
5
#!/bin/bash
for pod in $(kubectl get pods|grep Evicted|awk '{print $1}');
do
kubectl delete pods $pod
done