|
@ -33,7 +33,7 @@ spec: |
|
|
- "/bin/bash" |
|
|
- "/bin/bash" |
|
|
- "-c" |
|
|
- "-c" |
|
|
args: |
|
|
args: |
|
|
- "/plone/instance/bin/backup" |
|
|
- "/plone/Python-2.7/bin/python /plone/instance/bin/backup" |
|
|
env: |
|
|
env: |
|
|
- name: TZ |
|
|
- name: TZ |
|
|
value: {{ .Values.portal.timeZone }} |
|
|
value: {{ .Values.portal.timeZone }} |
|
@ -62,10 +62,24 @@ spec: |
|
|
nodeSelector: |
|
|
nodeSelector: |
|
|
{{- toYaml . | nindent 12 }} |
|
|
{{- toYaml . | nindent 12 }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- with .Values.affinity }} |
|
|
|
|
|
affinity: |
|
|
affinity: |
|
|
{{- toYaml . | nindent 12 }} |
|
|
podAffinity: |
|
|
{{- end }} |
|
|
requiredDuringSchedulingIgnoredDuringExecution: |
|
|
|
|
|
- labelSelector: |
|
|
|
|
|
matchExpressions: |
|
|
|
|
|
- key: app.kubernetes.io/name |
|
|
|
|
|
operator: In |
|
|
|
|
|
values: |
|
|
|
|
|
- {{ include "portalmodelo.name" . }} |
|
|
|
|
|
- key: app.kubernetes.io/instance |
|
|
|
|
|
operator: In |
|
|
|
|
|
values: |
|
|
|
|
|
- {{ .Release.Name }} |
|
|
|
|
|
- key: app.kubernetes.io/component |
|
|
|
|
|
operator: In |
|
|
|
|
|
values: |
|
|
|
|
|
- zeoserver |
|
|
|
|
|
topologyKey: kubernetes.io/hostname |
|
|
{{- with .Values.tolerations }} |
|
|
{{- with .Values.tolerations }} |
|
|
tolerations: |
|
|
tolerations: |
|
|
{{- toYaml . | nindent 12 }} |
|
|
{{- toYaml . | nindent 12 }} |
|
|