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: