From 49d3f5c092c05dedbb6d3c71bbbf5aa24c5d17b6 Mon Sep 17 00:00:00 2001 From: ahmza Date: Thu, 3 Sep 2026 03:04:17 +0100 Subject: [PATCH] Fix BGPPeer nodeSelector to match empty-string node-role label convention --- apps/metallb/templates/bgppeer.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/metallb/templates/bgppeer.yaml b/apps/metallb/templates/bgppeer.yaml index 4a925ab..83adbe3 100644 --- a/apps/metallb/templates/bgppeer.yaml +++ b/apps/metallb/templates/bgppeer.yaml @@ -22,6 +22,10 @@ spec: myASN: 64520 peerASN: 64512 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: - matchLabels: - node-role.kubernetes.io/worker: worker + node-role.kubernetes.io/worker: ""