This commit is contained in:
2025-10-02 10:43:55 +02:00
parent faaeb217bf
commit 916a6cc141

View File

@@ -1,7 +1,7 @@
# This top-level key MUST match the dependency name in your Chart.yaml # This top-level key MUST match the dependency name in your Chart.yaml
metallb: metallb:
# Your original address pool configuration, now nested # Your address pool configuration
config: config:
config: | config: |
address-pools: address-pools:
@@ -10,8 +10,10 @@ metallb:
addresses: addresses:
- 192.168.178.200-192.168.178.250 - 192.168.178.200-192.168.178.250
# The speaker tolerations, also nested # Configuration for the speaker DaemonSet
speaker: speaker:
# Tolerations to allow scheduling on control-plane nodes
tolerations: tolerations:
- key: "node-role.kubernetes.io/control-plane" - key: "node-role.kubernetes.io/control-plane"
operator: "Exists" operator: "Exists"
@@ -20,12 +22,19 @@ metallb:
operator: "Exists" operator: "Exists"
effect: "NoSchedule" effect: "NoSchedule"
# The controller tolerations, also nested # --- THIS IS THE NEW AND CRITICAL PART ---
controller: # Override the default nodeAffinity to ignore the 'exclude-from-external-load-balancers' label
tolerations: # This simpler affinity just requires the node to be a linux amd64 machine.
- key: "node-role.kubernetes.io/control-plane" affinity:
operator: "Exists" nodeAffinity:
effect: "NoSchedule" requiredDuringSchedulingIgnoredDuringExecution:
- key: "node-role.kubernetes.io/master" nodeSelectorTerms:
operator: "Exists" - matchExpressions:
effect: "NoSchedule" - key: kubernetes.io/os
operator: In
values:
- linux
- key: kubernetes.io/arch
operator: In
values:
- amd64