Closed
Description
What happened?
kube-router v1.5 did not peer with external router on difference network (Mismatched local address
)
My cluster setup has worker nodes join 2 difference networks (see figure bellow) and kube-router was configured to peer with external router https://github.com/cloudnativelabs/kube-router/blob/master/docs/bgp.md#peering-outside-the-cluster
What did you expect to happen?
Peer state is Established
How can we reproduce the behavior you experienced?
Steps to reproduce the behavior:
- Step 1: Setup k8s cluster with workers join 2 difference networks as diagram bellow
- Step 2: Install kube-router with params
--peer-router-ips
--peer-router-asns
to peer with external router - Step 3: Check BGP neighbors on kube-router
gobgp neighbor
to see that the peer state did not Established
Screenshots / Architecture Diagrams / Network Topologies
----|-----------------|--------------- network A (10.21.136.0/24)
workerA workerB
--------|-----------------|-----------------|--------------- network B (10.99.0.0/24)
External Peer
System Information (please complete the following information):
- Kube-Router Version: v1.5.0
- Kube-Router Parameters:
--peer-router-ips=<EXTERNAL_PEER_IP>
- Kubernetes Version: v1.22.10
- Cloud Type: on premise
- Kubernetes Deployment Type: custom
- Kube-Router Deployment Type: DaemonSet
- Cluster Size: 2
Logs, other output, metrics
time="2022-10-10T09:45:09Z" level=info msg="Mismatched local address" Addr=10.99.0.6 BindInterface= Configured addr=10.21.136.204 Key=10.99.0.2 Topic=Peer
Peer AS Up/Down State |#Received Accepted
10.99.0.2 64513 never Active | 0 0
10.99.0.3 64513 never Active | 0 0
Additional context
This PR seem to be the reason #777