首页 新闻 会员 周边 捐助

k8s 节点 syslog 中很多 orphaned pod 错误

0
悬赏园豆:30 [已解决问题] 解决于 2022-04-25 11:05

k8s 节点的 /var/log/syslog 中很多 orphaned pod 错误,请问如何解决?

Apr 24 18:36:25 kube-temp7-16c16g kubelet[895]: E0424 18:36:25.518199     895 kubelet_volumes.go:245] 
"There were many similar errors. Turn up verbosity to see them." err="orphaned pod \"5b88e89a-7f0b-4bee-8d78-08377fc5889e\" found, but error not a directory occurred when trying to remove the volumes dir" numErrs=3

k8s
dudu的主页 dudu | 高人七级 | 园豆:29570
提问于:2022-04-24 18:42

github 上的相关 issue https://github.com/kubernetes/kubernetes/issues/60987

dudu 2年前

github 上的相关 issue https://github.com/kubernetes/kubernetes/issues/105536

dudu 2年前
< >
分享
最佳答案
0

https://github.com/longhorn/longhorn/issues/3207 的评论 #issuecomment-998810462 中找到了解决方法:

But If replica has been rescheduled to different node and you have dangling vol_data.json you need to go to

var/lib/kubelet/pods/$pod_id/volumes/kubernetes.io~csi/pvc_$pvc_id/

and delete vol_data.json after making sure this is not "live" volume.

进入 /var/lib/kubelet/pods 目录,找出 vol_data.json 文件并删除

cd /var/lib/kubelet/pods
find . -name vol_data.json
rm b88e89a-7f0b-4bee-8d78-08377fc5889e/volumes/kubernetes.io~csi/nas-71ab1eb2-2e29-48af-9f07-b0f4371ede7e/vol_data.json
dudu | 高人七级 |园豆:29570 | 2022-04-25 11:04
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册