Browse Source

Use podaffinity to ease sapl upgrades with rwo vol

master
Fábio Kaiser Rauber 3 years ago
parent
commit
7d2f30818c
  1. 17
      charts/sapl/v0.2.0/templates/deployment.yaml

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

@ -108,8 +108,23 @@ spec:
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- {{ include "sapl.name" . }}
- key: app.kubernetes.io/instance
operator: In
values:
- {{ .Release.Name }}
topologyKey: kubernetes.io/hostname
{{- with .Values.affinity }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}

Loading…
Cancel
Save