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