blob: 37acdaeb3c0027e16c7c6dd3aa17e2b1c0c8f4e5 [file] [log] [blame]
diff --git a/charts/ovn/templates/deployment-northd.yaml b/charts/ovn/templates/deployment-northd.yaml
index 2dbbb689..baf5a0c7 100644
--- a/ovn/templates/deployment-northd.yaml
+++ b/ovn/templates/deployment-northd.yaml
@@ -49,6 +49,8 @@ spec:
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
spec:
serviceAccountName: {{ $serviceAccountName }}
+ affinity:
+{{- tuple $envAll "ovn" "ovn_northd" | include "helm-toolkit.snippets.kubernetes_pod_anti_affinity" | indent 8 }}
nodeSelector:
{{ .Values.labels.ovn_northd.node_selector_key }}: {{ .Values.labels.ovn_northd.node_selector_value }}
initContainers: