From 18deb16724f232a08af1cf96dcf2817098f4f167 Mon Sep 17 00:00:00 2001 From: Fabio Date: Tue, 28 Nov 2023 11:14:17 -0300 Subject: [PATCH] Run SAPL in different nodes if media PV is RWX --- charts/sapl/v0.2.0/templates/deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/sapl/v0.2.0/templates/deployment.yaml b/charts/sapl/v0.2.0/templates/deployment.yaml index fe56b44..47e49eb 100644 --- a/charts/sapl/v0.2.0/templates/deployment.yaml +++ b/charts/sapl/v0.2.0/templates/deployment.yaml @@ -111,6 +111,7 @@ spec: affinity: podAffinity: preferredDuringSchedulingIgnoredDuringExecution: + {{- if eq .Values.persistence.accessMode "ReadWriteOnce" }} - weight: 100 podAffinityTerm: labelSelector: @@ -124,6 +125,7 @@ spec: values: - {{ .Release.Name }} topologyKey: kubernetes.io/hostname + {{- end }} - weight: 50 podAffinityTerm: labelSelector: