|
@ -43,7 +43,6 @@ spec: |
|
|
volumeMounts: |
|
|
volumeMounts: |
|
|
- mountPath: /data |
|
|
- mountPath: /data |
|
|
name: data |
|
|
name: data |
|
|
{{- end }} |
|
|
|
|
|
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" |
|
|
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" |
|
|
name: {{ .Release.Name }}-initplone |
|
|
name: {{ .Release.Name }}-initplone |
|
|
command: |
|
|
command: |
|
@ -56,6 +55,7 @@ spec: |
|
|
volumeMounts: |
|
|
volumeMounts: |
|
|
- mountPath: /data |
|
|
- mountPath: /data |
|
|
name: data |
|
|
name: data |
|
|
|
|
|
{{- end }} |
|
|
{{- if .Values.portal.createAndUpgrade }} |
|
|
{{- if .Values.portal.createAndUpgrade }} |
|
|
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" |
|
|
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" |
|
|
name: {{ .Release.Name }}-plonecfg |
|
|
name: {{ .Release.Name }}-plonecfg |
|
@ -91,9 +91,11 @@ spec: |
|
|
{{- if .Values.instance.zeoclient }} |
|
|
{{- if .Values.instance.zeoclient }} |
|
|
- name: ZEO_ADDRESS |
|
|
- name: ZEO_ADDRESS |
|
|
value: {{ template "portalmodelo.fullname" . }}-zeoserver:8100 |
|
|
value: {{ template "portalmodelo.fullname" . }}-zeoserver:8100 |
|
|
|
|
|
{{- if eq .Values.persistence.accessMode "ReadWriteMany"}} |
|
|
- name: ZEO_SHARED_BLOB_DIR |
|
|
- name: ZEO_SHARED_BLOB_DIR |
|
|
value: "on" |
|
|
value: "on" |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
|
|
|
{{- end }} |
|
|
- name: TZ |
|
|
- name: TZ |
|
|
value: {{ .Values.portal.timeZone }} |
|
|
value: {{ .Values.portal.timeZone }} |
|
|
- name: ZODB_CACHE_SIZE |
|
|
- name: ZODB_CACHE_SIZE |
|
@ -124,19 +126,19 @@ spec: |
|
|
periodSeconds: 10 |
|
|
periodSeconds: 10 |
|
|
successThreshold: 1 |
|
|
successThreshold: 1 |
|
|
timeoutSeconds: 2 |
|
|
timeoutSeconds: 2 |
|
|
|
|
|
{{- if eq .Values.persistence.accessMode "ReadWriteMany" }} |
|
|
volumeMounts: |
|
|
volumeMounts: |
|
|
- mountPath: /data |
|
|
- mountPath: /data |
|
|
name: data |
|
|
name: data |
|
|
|
|
|
{{- end }} |
|
|
resources: |
|
|
resources: |
|
|
{{- toYaml .Values.resources.plone | nindent 12 }} |
|
|
{{- toYaml .Values.resources.plone | nindent 12 }} |
|
|
restartPolicy: Always |
|
|
restartPolicy: Always |
|
|
|
|
|
{{- if .Values.persistence.enabled }} |
|
|
volumes: |
|
|
volumes: |
|
|
- name: data |
|
|
- name: data |
|
|
{{- if .Values.persistence.enabled }} |
|
|
|
|
|
persistentVolumeClaim: |
|
|
persistentVolumeClaim: |
|
|
claimName: data |
|
|
claimName: data |
|
|
{{- else }} |
|
|
|
|
|
emptyDir: {} |
|
|
|
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- with .Values.nodeSelector }} |
|
|
{{- with .Values.nodeSelector }} |
|
|
nodeSelector: |
|
|
nodeSelector: |
|
|