Fix BGPPeer nodeSelector to match empty-string node-role label convention

This commit is contained in:
2026-09-03 03:04:17 +01:00
parent 3d2aea2d1f
commit 49d3f5c092
+5 -1
View File
@@ -22,6 +22,10 @@ spec:
myASN: 64520 myASN: 64520
peerASN: 64512 peerASN: 64512
peerAddress: 10.10.10.1 peerAddress: 10.10.10.1
# Kubernetes' own convention for node-role.kubernetes.io/* labels is an
# empty string value (kubectl's ROLES column reads the key, not the value).
# Match that convention exactly, or this selector matches zero nodes and
# MetalLB silently generates BGP configuration for nobody.
nodeSelectors: nodeSelectors:
- matchLabels: - matchLabels:
node-role.kubernetes.io/worker: worker node-role.kubernetes.io/worker: ""