Skip to content

Commit 12e4dd6

Browse files
committed
FRR-K8s: make listening to incoming connections configurable
In case full mesh is not needed, always connecting results in a more predictable behavior. Signed-off-by: Federico Paolinelli <[email protected]>
1 parent bece7fd commit 12e4dd6

File tree

6 files changed

+6
-4
lines changed

6 files changed

+6
-4
lines changed

charts/frr-k8s/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Kubernetes: `>= 1.19.0-0`
2727
| frrk8s.affinity | object | `{}` | |
2828
| frrk8s.alwaysBlock | string | `""` | |
2929
| frrk8s.disableCertRotation | bool | `false` | |
30+
| frrk8s.frr.acceptIncomingBGPConnections | bool | `false` | |
3031
| frrk8s.frr.image.pullPolicy | string | `nil` | |
3132
| frrk8s.frr.image.repository | string | `"quay.io/frrouting/frr"` | |
3233
| frrk8s.frr.image.tag | string | `"9.1.0"` | |

charts/frr-k8s/templates/controller.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ data:
5050
#
5151
vtysh_enable=yes
5252
zebra_options=" -A 127.0.0.1 -s 90000000"
53-
bgpd_options=" -A 127.0.0.1"
53+
bgpd_options=" -A 127.0.0.1 {{ if not .Values.frrk8s.frr.acceptIncomingBGPConnections }} -p 0 {{- end }}"
5454
ospfd_options=" -A 127.0.0.1"
5555
ospf6d_options=" -A ::1"
5656
ripd_options=" -A 127.0.0.1"

charts/frr-k8s/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ frrk8s:
163163
metricsPort: 7573
164164
resources: {}
165165
secureMetricsPort: 9141
166+
acceptIncomingBGPConnections: false
166167
reloader:
167168
resources: {}
168169
frrMetrics:

config/all-in-one/frr-k8s-prometheus.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ data:
836836
#
837837
vtysh_enable=yes
838838
zebra_options=" -A 127.0.0.1 -s 90000000"
839-
bgpd_options=" -A 127.0.0.1"
839+
bgpd_options=" -A 127.0.0.1 -p 0"
840840
ospfd_options=" -A 127.0.0.1"
841841
ospf6d_options=" -A ::1"
842842
ripd_options=" -A 127.0.0.1"

config/all-in-one/frr-k8s.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ data:
805805
#
806806
vtysh_enable=yes
807807
zebra_options=" -A 127.0.0.1 -s 90000000"
808-
bgpd_options=" -A 127.0.0.1"
808+
bgpd_options=" -A 127.0.0.1 -p 0"
809809
ospfd_options=" -A 127.0.0.1"
810810
ospf6d_options=" -A ::1"
811811
ripd_options=" -A 127.0.0.1"

config/frr-k8s/frr-cm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ data:
4646
#
4747
vtysh_enable=yes
4848
zebra_options=" -A 127.0.0.1 -s 90000000"
49-
bgpd_options=" -A 127.0.0.1"
49+
bgpd_options=" -A 127.0.0.1 -p 0"
5050
ospfd_options=" -A 127.0.0.1"
5151
ospf6d_options=" -A ::1"
5252
ripd_options=" -A 127.0.0.1"

0 commit comments

Comments
 (0)