现象:

containerd日志打印:

Warning FailedCreatePodSandBox 2m23s (x590 over 135m) kubelet (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox “33ca1715cd94f5cb010f20c7c5aae7cbf87b182a35b22806c0f9e526113eaca8”: cannot allocate new block due to per host block limit

原因:

节点反复重启, pod一直重建的时候, ipam可能泄露 了,需要手动清理

解决办法:

calicoctl datastore migrate lock
calicoctl ipam check --show-problem-ips -o report.json
calicoctl ipam release --from-report=report.json
calicoctl datastore migrate unlock
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐