Skip to content

Commit

Permalink
Add pod anti-affinity to odh-model-controller manifests (opendatahub-…
Browse files Browse the repository at this point in the history
…io#849)

Signed-off-by: Edgar Hernández <[email protected]>
  • Loading branch information
israel-hdez authored and Jooho committed Jul 5, 2023
1 parent 3d87238 commit 937352b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions model-mesh/odh-model-controller/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 937352b

Please sign in to comment.