Kube-bridge has unexpected IP

Hi out there,

after solving my kube-router problem I now have new one.

When trying to start a pod I now get this:

Warning  FailedCreatePodSandBox  13m                 kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "b4257c53dc08ac0e32f454ac238656e0d79f24588db42471de5258da5cc40672": plugin type="bridge" name="kubernetes" failed (add): failed to set bridge addr: "kube-bridge" already has an IP address different from 192.168.1.1/24

I have setup the control plane with:

kubeadm init --pod-network-cidr 192.168.0.0/19
kubectl apply -f https://raw.githubusercontent.com/cloudnativelabs/kube-router/master/daemonset/kubeadm-kuberouter-all-features.yaml

Does anyone has a hint how this can be fixed or where I can find some troubleshooting information.

Thanks.

Cluster information:

Kubernetes version:1.28.2-00
Cloud being used: bare-metal
Installation method: debian installer apt
Host OS: debian buster
CNI and version: 1.2.0-00
CRI and version: containerd.io 1.6.24-1

Just for the records. In the end I was able to fix this. The worker nodes kuberouter config had two subnet ranges configured. After deleting one of them the problem is gone.

Check /etc/cni/net.d/10-kuberouter.conf for obsolete subnet configurations and delete them to get rid of the error.

1 Like