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

Add pod anti-affinity to odh-model-controller manifests #849

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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