I have a fresh installation of rke2 on ubuntu 22.04 (equals on 20.04) and my first deployment return this messages on pods:
kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox “b8abc6276967f1f73a8da4dfa1212ad1a2b59639f86a0eba9ae92d6fc39921d4”: plugin type=“calico” failed (add): failed to allocate for range 0: no IP addresses available in range set: 10.42.0.1-10.42.0.254
I am running on VM’s using proxmox 8.2 and this version of k8s:
v1.27.12+rke2r1
Thanks for any help.
I am getting the same error while installing rke2 on proxmox. I use metalb for load balancer, The IP shows up but the pod is in crash loop.
I get the following error:
plugin type=“calico” failed (add): failed to allocate for range 0: no IP addresses available in range set: 10.42.0.1-10.42.0.254
Sounds like this CIDR range is already taken up by proxmox, so you would need to supply a different cluster and service CIDR range during rke2 bootstrap ( check the docs for the args)
首先检查是否安装了iptables。在iptables安装完成的情况下,在/var/lib/cni/network目录下找到以ip地址为名字的文件。除了lock文件以外,可以全部删除。