From 2d4dc3dffc98af0361b54f2884a8a0a9f496bed1 Mon Sep 17 00:00:00 2001 From: just-mitch <68168980+just-mitch@users.noreply.github.com> Date: Fri, 6 Dec 2024 21:27:34 -0500 Subject: [PATCH] fix: pod anti affinity spans all namespaces (#10475) also grant anti-affinity to the prover node/broker. --- spartan/aztec-network/templates/_helpers.tpl | 4 +++- spartan/aztec-network/templates/prover-broker.yaml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/spartan/aztec-network/templates/_helpers.tpl b/spartan/aztec-network/templates/_helpers.tpl index 8581bda2d4f..87322add2ac 100644 --- a/spartan/aztec-network/templates/_helpers.tpl +++ b/spartan/aztec-network/templates/_helpers.tpl @@ -170,6 +170,8 @@ affinity: values: - validator - boot-node - - prover + - prover-node + - prover-broker topologyKey: "kubernetes.io/hostname" + namespaceSelector: {} {{- end -}} diff --git a/spartan/aztec-network/templates/prover-broker.yaml b/spartan/aztec-network/templates/prover-broker.yaml index 850366997b2..5f6a571b167 100644 --- a/spartan/aztec-network/templates/prover-broker.yaml +++ b/spartan/aztec-network/templates/prover-broker.yaml @@ -21,6 +21,7 @@ spec: {{- if .Values.network.public }} hostNetwork: true dnsPolicy: ClusterFirstWithHostNet + {{- include "aztec-network.publicAntiAffinity" . | nindent 6 }} {{- end }} volumes: - name: config