diff --git a/model-mesh/odh-model-controller/manager/manager.yaml b/model-mesh/odh-model-controller/manager/manager.yaml index dd20aecd8..9ced56944 100644 --- a/model-mesh/odh-model-controller/manager/manager.yaml +++ b/model-mesh/odh-model-controller/manager/manager.yaml @@ -18,6 +18,18 @@ spec: control-plane: odh-model-controller app: odh-model-controller spec: + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: control-plane + operator: In + values: + - odh-model-controller + topologyKey: kubernetes.io/hostname securityContext: runAsNonRoot: true containers: