发布时间: 2024-4-7 文章作者: myluzh 分类名称: Kubernetes 朗读文章
root@iZbp12bkuvg20e1j3y9gtxZ:~# kubectl get pod -n base-ops NAME READY STATUS RESTARTS AGE registry-6d7b7c9fb4-22f2x 0/1 Evicted 0 10d registry-6d7b7c9fb4-24r7j 0/1 Evicted 0 10d registry-6d7b7c9fb4-25clg 0/1 Evicted 0 10d ...
root@iZbp12bkuvg20e1j3y9gtxZ:~# kubectl -n base-ops get pods | grep Evicted |awk '{print$1}'|xargs kubectl -n base-ops delete pods pod "registry-6d7b7c9fb4-22f2x" deleted pod "registry-6d7b7c9fb4-24r7j" deleted pod "registry-6d7b7c9fb4-25clg" deleted
发表评论