报错日志
# journalctl -fu kubelet
Sep 06 13:47:57 k8s-3 kubelet[1342]: E0906 13:47:57.982361    1342 kubelet_volumes.go:154] Orphaned pod "82ebc0c5-dd4c-43d8-8fa1-7d2b5af4c899" found, but volume subpaths are still present on disk : There were a total of 2 errors similar to this. Turn up verbosity to see them.
Sep 06 13:47:59 k8s-3 kubelet[1342]: E0906 13:47:59.978379    1342 kubelet_volumes.go:154] Orphaned pod "82ebc0c5-dd4c-43d8-8fa1-7d2b5af4c899" found, but volume subpaths are still present on disk : There were a total of 2 errors similar to this. Turn up verbosity to see them.
Sep 06 13:48:01 k8s-3 kubelet[1342]: E0906 13:48:01.982388    1342 kubelet_volumes.go:154] Orphaned pod "82ebc0c5-dd4c-43d8-8fa1-7d2b5af4c899" found, but volume subpaths are still present on disk : There were a total of 2 errors similar to this. Turn up verbosity to see them.
Sep 06 13:48:03 k8s-3 kubelet[1342]: E0906 13:48:03.981616    1342 kubelet_volumes.go:154] Orphaned pod "82ebc0c5-dd4c-43d8-8fa1-7d2b5af4c899" found, but volume subpaths are still present on disk : There were a total of 2 errors similar to this. Turn up verbosity to see them.









进入kubelet的目录,可以发现里面装的是容器的数据,etc-hosts文件中还保留着podname
[root@k8s-3 ~]# cd /var/lib/kubelet/pods/

[root@k8s-3 /var/lib/kubelet/pods]# ls
06f203b9-22d8-4846-91d1-18acfc9d994f  651a95bc785f65113769b7e4c50cd4e7      89a03279-88ba-489e-adbc-d0f2ab90d64e  e970060a-0aed-43d5-b2c0-2e18e705e82f
1e3624eac7976e35b890aed97ae6509d      7c040011-5506-4eda-ae5a-46910e27b54f  abfd14af-6cbd-44e0-8e7c-73bc944042a6  f2fd39f057500a74a8a1587ec9579f81
2575cfc3-976b-4383-8482-13f3d8f9d289  82ebc0c5-dd4c-43d8-8fa1-7d2b5af4c899  db935350b96a454fed49cdbd82d5b12a

// 直接执行删除操作
[root@k8s-3 /var/lib/kubelet/pods]# rm -rf 82ebc0c5-dd4c-43d8-8fa1-7d2b5af4c899/







Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐