metallb: exclude masters from bgp announcing

This commit is contained in:
ace 2023-03-05 22:24:26 +03:00
parent 8b31b52dc3
commit 74a56e6bb8
Signed by: ace
GPG Key ID: 2C08973DD37A76FD

View File

@ -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