ubectl get pod -A|grep Evicted|awk '{print "kubectl delete pod -n cattle-system  "$2}' > aaaa.sh

删除pod

sh aaaa.sh

通过grep 计算有多少pod异常

kubectl get pod -A |grep Evicted |wc -l

相关文章:

  • 2022-12-23
  • 2021-10-09
  • 2021-11-04
  • 2022-12-23
  • 2021-08-12
  • 2021-12-23
  • 2021-05-27
  • 2022-12-23
猜你喜欢
  • 2021-11-18
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2021-09-29
  • 2021-08-08
  • 2022-02-03
相关资源
相似解决方案