Closed heliloop closed 2 days ago
@heliloop the issue is about in-cluster routing. In your cluster, no encapsulation is enabled, which is about this line:
encapsulation: None
Also internal BGP mesh is also disabled:
nodeToNodeMeshEnabled: false
You need to enabled either of this options to let routes be programmed. Please refer to Calico docs for more information: https://docs.tigera.io/calico/latest/networking/configuring/
Thanks just to wrap up, this setting solved it for me. Thanks a lot.
# BGPConfiguration
nodeToNodeMeshEnabled: true
# BGPPeer
keepOriginalNextHop: true
Hi, I belive I am facing a similar issue to https://github.com/projectcalico/calico/issues/4287
I have two containers running in 2 pods: A and B, each pod is deployed to a different node N1 and N2
Pod A has annotation:
Pod B has annotation:
There is no routing (e.g. pods can ping each other) between pods when this annotiation is present
Expected Behavior
From pod A I should be able to ping pod B For pod B I should be able to ping pod A
Current Behavior
No routing between pods when
cni.projectcalico.org/ipAddrs
is used.If the pods are on the same node, routing works
If I let IPAM to choose IP, then routing works
I am able to ping A or B from external machine.
I am NOT able to ping A or B from another pod without annotation regardless unless it's on the same node as the pod I am trying to ping
Possible solution
Choose IP far away from each other, e.g. in this example it'd be 10.40.4.4 and 10.40.8.8 so they get registered with BGP server and netmask of /26 like this
Similar issues with IPv6 and similar solution (will keep it out of the scope of this issue)
Configuration
This is 2 node bare metal installation N1 is 192.168.4.12 and N2 192.168.4.13
BGP routes as visible from router
Notice /26
Routes on Node1
Routes on Node2