Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to setup Calico on Kubernetes

Trying to set up Calico on-premises Kubernetes cluster.

Initializing cluster kubeadm init --pod-network-cidr=192.168.0.0/16 Using https://docs.projectcalico.org/manifests/calico.yaml manifest.

~# calicoctl node status
Calico process is running.

IPv4 BGP status
+---------------+-------------------+-------+----------+---------+
| PEER ADDRESS  |     PEER TYPE     | STATE |  SINCE   |  INFO   |
+---------------+-------------------+-------+----------+---------+
| 10.25.13.69   | node-to-node mesh | start | 13:49:12 | Connect |
+---------------+-------------------+-------+----------+---------+

calico-node complains: calico/node is not ready: BIRD is not ready: BGP not established with 10.25.13.69

What Connect actually means? Where to look for the problem? Could it be related to the multiple kubeadm reset?

like image 375
Jonas Avatar asked Feb 01 '26 02:02

Jonas


1 Answers

As nodes had different network interfaces, calico-node autodetected different networks on nodes. To fix this I added IP_AUTODETECTION_METHOD env var to calico-node DaemonSet. In my case I used these env var values:

   # Auto-detect the BGP IP address.
   - name: IP
     value: "autodetect"
   - name: IP_AUTODETECTION_METHOD
     value: cidr=10.0.0.0/8
like image 50
Jonas Avatar answered Feb 03 '26 22:02

Jonas