pod一直处于ContainerCreating状态中,报错: cannot allocate new block due to per host block limit
【代码】pod一直处于ContainerCreating状态中,报错: cannot allocate new block due to per host block limit。
·
现象:
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
更多推荐
所有评论(0)