Browse Source

Run SAPL in different nodes if media PV is RWX

master
parent
commit
18deb16724
  1. 2
      charts/sapl/v0.2.0/templates/deployment.yaml

2
charts/sapl/v0.2.0/templates/deployment.yaml

@ -111,6 +111,7 @@ spec:
affinity: affinity:
podAffinity: podAffinity:
preferredDuringSchedulingIgnoredDuringExecution: preferredDuringSchedulingIgnoredDuringExecution:
{{- if eq .Values.persistence.accessMode "ReadWriteOnce" }}
- weight: 100 - weight: 100
podAffinityTerm: podAffinityTerm:
labelSelector: labelSelector:
@ -124,6 +125,7 @@ spec:
values: values:
- {{ .Release.Name }} - {{ .Release.Name }}
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname
{{- end }}
- weight: 50 - weight: 50
podAffinityTerm: podAffinityTerm:
labelSelector: labelSelector:

Loading…
Cancel
Save