@ -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