From 74a56e6bb8af67b06d4127614f2019ff99ad8517 Mon Sep 17 00:00:00 2001 From: ace Date: Sun, 5 Mar 2023 22:24:26 +0300 Subject: [PATCH] metallb: exclude masters from bgp announcing --- roles/metallb/defaults/main.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/metallb/defaults/main.yaml b/roles/metallb/defaults/main.yaml index 45132ec..ffbf1bc 100644 --- a/roles/metallb/defaults/main.yaml +++ b/roles/metallb/defaults/main.yaml @@ -31,6 +31,10 @@ metallb_bgp_definitions: - "{{ metallb_pool_name }}" aggregationLength: {{ metallb_bgp_aggregation_length }} localpref: {{ metallb_bgp_localpref }} + nodeSelectors: + - matchExpressions: + - key: node-role.kubernetes.io/control-plane + operator: DoesNotExist metallb_peer: | apiVersion: metallb.io/v1beta2 @@ -63,3 +67,7 @@ metallb_l2_definitions: spec: ipAddressPools: - "{{ metallb_pool_name }}" + nodeSelectors: + - matchExpressions: + - key: node-role.kubernetes.io/control-plane + operator: DoesNotExist