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