diff --git a/infrastructure/metallb/patches/node-placement.yaml b/infrastructure/metallb/patches/node-placement.yaml index e32337e..f520c37 100644 --- a/infrastructure/metallb/patches/node-placement.yaml +++ b/infrastructure/metallb/patches/node-placement.yaml @@ -15,8 +15,16 @@ spec: - --webhook-mode=enabled - --tls-min-version=VersionTLS12 - --lb-class=metallb - nodeSelector: - hardware: rpi5 + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: hardware + operator: In + values: + - rpi4 + - rpi5 --- apiVersion: apps/v1 kind: DaemonSet @@ -26,5 +34,13 @@ metadata: spec: template: spec: - nodeSelector: - hardware: rpi5 + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: hardware + operator: In + values: + - rpi4 + - rpi5