From 1f391d49dd0a6811cd5017a71a5ebaff04bdbaaa Mon Sep 17 00:00:00 2001 From: JJGadgets Date: Thu, 11 Jan 2024 12:51:08 +0800 Subject: [PATCH] fix(frr): peering --- kube/deploy/core/_networking/cilium/loadbalancer/BGP.yaml | 4 +++- kube/deploy/core/_networking/frr/app/hr.yaml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/kube/deploy/core/_networking/cilium/loadbalancer/BGP.yaml b/kube/deploy/core/_networking/cilium/loadbalancer/BGP.yaml index 94253108..f80f0886 100644 --- a/kube/deploy/core/_networking/cilium/loadbalancer/BGP.yaml +++ b/kube/deploy/core/_networking/cilium/loadbalancer/BGP.yaml @@ -33,9 +33,11 @@ spec: serviceSelector: *all neighbors: - &nodes - peerAddress: "${IP_ROUTER_VLAN_K8S_PREFIX}1/32" + peerAddress: "127.0.0.1/32" peerASN: ${ASN_CLUSTER_NODES} peerPort: 61790 + - <<: *nodes + peerAddress: "${IP_ROUTER_VLAN_K8S_PREFIX}1/32" - <<: *nodes peerAddress: "${IP_ROUTER_VLAN_K8S_PREFIX}2/32" - <<: *nodes diff --git a/kube/deploy/core/_networking/frr/app/hr.yaml b/kube/deploy/core/_networking/frr/app/hr.yaml index 8513cfcd..0320fb7d 100644 --- a/kube/deploy/core/_networking/frr/app/hr.yaml +++ b/kube/deploy/core/_networking/frr/app/hr.yaml @@ -78,9 +78,11 @@ spec: bgp ebgp-requires-policy bgp graceful-restart bgp default ipv4-unicast + bgp allow-martian-nexthop neighbor cilium peer-group neighbor cilium remote-as ${ASN_CLUSTER_NODES} neighbor cilium port 179 + neighbor 127.0.0.1 peer-group cilium neighbor ${IP_ROUTER_VLAN_K8S_PREFIX}1 peer-group cilium neighbor ${IP_ROUTER_VLAN_K8S_PREFIX}2 peer-group cilium neighbor ${IP_ROUTER_VLAN_K8S_PREFIX}3 peer-group cilium