From 0dfd4f5dd882336eafe41206bda14cc64d006552 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Mon, 27 May 2024 09:27:12 -0400 Subject: [PATCH] fix: update bgp peer port logic Signed-off-by: Devin Buhl --- .../apps/kube-system/cilium/config/cilium-l3.yaml.j2 | 4 +--- config.sample.yaml | 8 +++----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/bootstrap/templates/kubernetes/apps/kube-system/cilium/config/cilium-l3.yaml.j2 b/bootstrap/templates/kubernetes/apps/kube-system/cilium/config/cilium-l3.yaml.j2 index 92e65e30..80427a1b 100644 --- a/bootstrap/templates/kubernetes/apps/kube-system/cilium/config/cilium-l3.yaml.j2 +++ b/bootstrap/templates/kubernetes/apps/kube-system/cilium/config/cilium-l3.yaml.j2 @@ -16,9 +16,7 @@ spec: #% for item in bootstrap_bgp.peers %# - peerAddress: "#{ item }#/32" peerASN: #{ bootstrap_bgp.peer_asn }# - #% if bootstrap_bgp.peer_port %# - peerPort: #{ bootstrap_bgp.peer_port }# - #% endif %# + peerPort: #{ bootstrap_bgp.peer_port | default(179) }# #% endfor %# #% else %# #% if bootstrap_node_default_gateway %# diff --git a/config.sample.yaml b/config.sample.yaml index d17225be..dabffb15 100644 --- a/config.sample.yaml +++ b/config.sample.yaml @@ -83,11 +83,9 @@ bootstrap_bgp: peers: [] # (Required) Set the BGP Autonomous System Number for the router(s) and nodes. # If these match, iBGP will be used. If not, eBGP will be used. - peer_asn: "" # Router(s) AS - local_asn: "" # Node(s) AS - # (Optional) If using a non-default BGP port. - # Default is 179 (tcp). - # peer_port: "" # BGP Port + peer_asn: "" # Router(s) AS + local_asn: "" # Node(s) AS + peer_port: 179 # BGP Port - default is TCP port 179 # (Required) The advertised CIDR for the cluster, this must NOT overlap with any # existing networks and is usually a /16 (64K IPs). # If you want to use IPv6 check the advanced flags below