diff --git a/config/channels/in-memory-channel/deployments/dispatcher.yaml b/config/channels/in-memory-channel/deployments/dispatcher.yaml index 33084d25484..0d6af518d4b 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 diff --git a/openshift/release/knative-eventing-ci.yaml b/openshift/release/knative-eventing-ci.yaml index 0c81161b826..88c452b4159 100644 --- a/openshift/release/knative-eventing-ci.yaml +++ b/openshift/release/knative-eventing-ci.yaml @@ -4917,6 +4917,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