Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Add pod anti-affinity to odh-model-controller manifests (#849)
Browse files Browse the repository at this point in the history
Signed-off-by: Edgar Hernández <23639005+israel-hdez@users.noreply.github.com>
  • Loading branch information
israel-hdez authored Jun 27, 2023
1 parent 5a6d5f4 commit 1e4ea43
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 1e4ea43

Please sign in to comment.