diff --git a/charts/metal-control-plane/templates/ipam.yaml b/charts/metal-control-plane/templates/ipam.yaml index 11597a0..d9b5ace 100644 --- a/charts/metal-control-plane/templates/ipam.yaml +++ b/charts/metal-control-plane/templates/ipam.yaml @@ -18,17 +18,15 @@ spec: prometheus.io/port: '2112' spec: affinity: - podAntiAffinity: + podAffinity: requiredDuringSchedulingIgnoredDuringExecution: - - weight: 100 - podAffinityTerm: - labelSelector: - matchExpressions: - - key: app - operator: In - values: - - ipam - topologyKey: topology.kubernetes.io/zone + labelSelector: + matchExpressions: + - key: app + operator: NotIn + values: + - ipam + topologyKey: topology.kubernetes.io/zone containers: - name: ipam args: