|
|
@ -116,6 +116,27 @@ spec: |
|
|
|
{{- end }} |
|
|
|
{{- with .Values.affinity }} |
|
|
|
affinity: |
|
|
|
{{- if .Values.instance.zeoclient }} |
|
|
|
podAffinity: |
|
|
|
preferredDuringSchedulingIgnoredDuringExecution: |
|
|
|
- weight: 50 |
|
|
|
podAffinityTerm: |
|
|
|
labelSelector: |
|
|
|
matchExpressions: |
|
|
|
- key: app.kubernetes.io/name |
|
|
|
operator: In |
|
|
|
values: |
|
|
|
- {{ include "portalmodelo.name" . }} |
|
|
|
- key: app.kubernetes.io/component |
|
|
|
operator: In |
|
|
|
values: |
|
|
|
- zeoserver |
|
|
|
- key: app.kubernetes.io/instance |
|
|
|
operator: In |
|
|
|
values: |
|
|
|
- {{ .Release.Name }} |
|
|
|
topologyKey: kubernetes.io/hostname |
|
|
|
{{- end }} |
|
|
|
{{- toYaml . | nindent 8 }} |
|
|
|
{{- end }} |
|
|
|
{{- with .Values.tolerations }} |
|
|
|