首页 > 其他分享 >kubenetes 报错排查

kubenetes 报错排查

时间:2023-11-03 12:55:06浏览次数:51  
标签:fs may 排查 报错 kubenetes mounts netns detach

1. 报 code = Unknown desc = failed to get sandbox ip: check network namespace closed: remove netns: unlinkat /var/run/netns/cni-2502ee8a-9f06-2a44-66c6-59e2a7a277f9: device or resource busy

  • 解决方案: see code = Unknown desc = failed to get sandbox ip: check network namespace closed: remove netns: unlinkat /var/run/netns/cni-2502ee8a-9f06-2a44-66c6-59e2a7a277f9: device or resource busy

参考 https://github.com/TimeBye/kubeadm-ha/issues/85

处理方法:

echo 1 > /proc/sys/fs/may_detach_mounts
或者
sysctl -w fs.may_detach_mounts=1

建议:
部署过程中追加 内核参数: fs.may_detach_mounts=1

标签:fs,may,排查,报错,kubenetes,mounts,netns,detach
From: https://www.cnblogs.com/whm-blog/p/17807386.html

相关文章