Skip to content

Commit ef405fc

Browse files
authored
Add hostname/node based anti-affinity rule to the coherence operator deployment Pods (#554)
* Use anti-affinity on kubernetes.io/hostname when scheduling Operator Pods * Change anti-affinity weights
1 parent 3a87ad6 commit ef405fc

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

config/manager/manager.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,13 @@ spec:
113113
app.kubernetes.io/name: coherence-operator
114114
app.kubernetes.io/instance: coherence-operator-manager
115115
app.kubernetes.io/version: "3.2.9"
116+
weight: 10
117+
- podAffinityTerm:
118+
topologyKey: "kubernetes.io/hostname"
119+
labelSelector:
120+
matchLabels:
121+
control-plane: coherence
122+
app.kubernetes.io/name: coherence-operator
123+
app.kubernetes.io/instance: coherence-operator-manager
124+
app.kubernetes.io/version: "3.2.9"
116125
weight: 1

helm-charts/coherence-operator/templates/deployment.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,15 @@ spec:
206206
app.kubernetes.io/name: coherence-operator
207207
app.kubernetes.io/instance: coherence-operator-manager
208208
app.kubernetes.io/version: "${VERSION}"
209+
weight: 10
210+
- podAffinityTerm:
211+
topologyKey: "kubernetes.io/hostname"
212+
labelSelector:
213+
matchLabels:
214+
control-plane: coherence
215+
app.kubernetes.io/name: coherence-operator
216+
app.kubernetes.io/instance: coherence-operator-manager
217+
app.kubernetes.io/version: "${VERSION}"
209218
weight: 1
210219
{{- end }}
211220
volumes:

0 commit comments

Comments
 (0)