Skip to content

Commit d6179f0

Browse files
authored
Add pod anti-affinity to odh-model-controller manifests (#115)
Signed-off-by: Edgar Hernández <23639005+israel-hdez@users.noreply.github.com>
1 parent 0907547 commit d6179f0

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

  • opendatahub/odh-manifests

opendatahub/odh-manifests/model-mesh/odh-model-controller/manager/manager.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ spec:
1818
control-plane: odh-model-controller
1919
app: odh-model-controller
2020
spec:
21+
affinity:
22+
podAntiAffinity:
23+
preferredDuringSchedulingIgnoredDuringExecution:
24+
- weight: 100
25+
podAffinityTerm:
26+
labelSelector:
27+
matchExpressions:
28+
- key: control-plane
29+
operator: In
30+
values:
31+
- odh-model-controller
32+
topologyKey: kubernetes.io/hostname
2133
securityContext:
2234
runAsNonRoot: true
2335
containers:

opendatahub/odh-manifests/model-mesh_stable/odh-model-controller/manager/manager.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ spec:
1818
control-plane: odh-model-controller
1919
app: odh-model-controller
2020
spec:
21+
affinity:
22+
podAntiAffinity:
23+
preferredDuringSchedulingIgnoredDuringExecution:
24+
- weight: 100
25+
podAffinityTerm:
26+
labelSelector:
27+
matchExpressions:
28+
- key: control-plane
29+
operator: In
30+
values:
31+
- odh-model-controller
32+
topologyKey: kubernetes.io/hostname
2133
securityContext:
2234
runAsNonRoot: true
2335
containers:

0 commit comments

Comments
 (0)