Skip to content

Commit 7925369

Browse files
yboarontpantelis
authored andcommitted
Explicitly disable BGP export for Calico IPPools
We recently noticed that sometimes (probably after node reboots) static routes to remote cluster CIDRs added by RouteAgent are overridden by Calico (proto = bird) even though IPPool is set with Disabled=true. Routes added by Calico point inter-cluster traffic to default interface instead of vx-submariner which breaks datapath. Adding DisableBGPExport=true to IPPool solves this issue. Signed-off-by: Yossi Boaron <[email protected]>
1 parent cd90f2d commit 7925369

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/routeagent_driver/handlers/calico/ippool_handler.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,10 @@ func (h *calicoIPPoolHandler) createIPPool(endpoint *submV1.Endpoint) error {
161161
Labels: map[string]string{SubmarinerIPPool: "true"},
162162
},
163163
Spec: calicoapi.IPPoolSpec{
164-
CIDR: subnet,
165-
NATOutgoing: false,
166-
Disabled: true,
164+
CIDR: subnet,
165+
NATOutgoing: false,
166+
Disabled: true,
167+
DisableBGPExport: true,
167168
},
168169
}
169170
_, err := h.client.ProjectcalicoV3().IPPools().Create(context.TODO(), iPPoolObj, metav1.CreateOptions{})

0 commit comments

Comments
 (0)