关于 Linux netns 提问

讨论 未结 0 59
amrom
amrom 会员 2022年5月18日 07:39 发表
<p>请教一下各位老哥:</p> <p>问题:最近起 pod 的时候,node2 节点总是有个报错,<code>Failed to create pod sandbox: rpc error: code = Unknown desc = failed to create network namespace for sandbox "4cad3042edd303047a78929609ab6fc5cc5ca72f1f29650cbf71d28d4d27b112": failed to setup netns: failed to create namespace: cannot allocate memory</code>,隔一段时间后,pod 也能正常跑起来,问题定位不出来,勉强定位出来一个可能的问题,在 nde2 节点检查 net ns 的时候,发现好多 ns ,可能是 pod 删除后没清理的</p> <pre><code class="language-code">[<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0a7865657e4a64656e6f38">[email&nbsp;protected]</a> ~]# ip netns ls RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument ... RTNETLINK answers: Invalid argument cni-2f4b92c9-a224-c0e5-c89d-2e40aaf8cb73 RTNETLINK answers: Invalid argument cni-443554aa-edb7-c421-8f8c-e31e5c6cfa5e RTNETLINK answers: Invalid argument cni-68e105fe-1096-bcc4-d279-923136e53805 cni-15381e7a-c89e-f2fc-65ae-b7e761b0e9f9 (id: 5) cni-f738af18-e870-193e-ca0c-e0f2f7e07c81 (id: 8) </code></pre> <p>问题:首先就是我定位的地方对不对,还有就是这些 ns 怎么清理比较好,google 了一圈,有让升级 cni 插件的,有让升级 kernel 的,但是没有详细的 </p> <p>其他:cni 用的 calico ,centos 内核<code>3.10.0-1062.el7.x86_64</code></p> <p>有没有遇到过类似问题的朋友,帮忙提点下</p>
收藏(0)  分享
相关标签: 灌水交流
注意:本文归作者所有,未经作者允许,不得转载
0个回复
  • 消灭零回复