Skip to content

Commit

Permalink
Merge pull request #398 from Jooho/rhods-1.29-849
Browse files Browse the repository at this point in the history
[Cherry Pick] Add pod anti-affinity to odh-model-controller manifests (opendatahub-io#849)
  • Loading branch information
Jooho authored Jul 5, 2023
2 parents 3d87238 + 937352b commit fdc5bb3
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 fdc5bb3

Please sign in to comment.