From a40a0c947897c173638c99606c3137c6f71df95c Mon Sep 17 00:00:00 2001 From: Antoine Cotten Date: Wed, 9 Dec 2020 10:55:24 +0100 Subject: [PATCH] Add soft Pod anti-affinity to IMC dispatchers --- .../in-memory-channel/deployments/dispatcher.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/channels/in-memory-channel/deployments/dispatcher.yaml b/config/channels/in-memory-channel/deployments/dispatcher.yaml index 4496d257ee8..b1d6a4377ed 100644 --- a/config/channels/in-memory-channel/deployments/dispatcher.yaml +++ b/config/channels/in-memory-channel/deployments/dispatcher.yaml @@ -30,6 +30,14 @@ spec: metadata: labels: *labels spec: + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchLabels: *labels + topologyKey: kubernetes.io/hostname + weight: 100 serviceAccountName: imc-dispatcher containers: - name: dispatcher