Browse Source

Implemented default env variables in snappymail

master
Fábio Kaiser Rauber 2 years ago
parent
commit
223364a76c
  1. 9
      charts/snappymail/v0.1.0/templates/deployment.yaml
  2. 8
      charts/snappymail/v0.1.0/values.yaml

9
charts/snappymail/v0.1.0/templates/deployment.yaml

@ -32,6 +32,15 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: UPLOAD_MAX_SIZE
value: {{ .Values.snappymail.uploadMaxSize | quote }}
- name: LOG_TO_STDERR
value: {{ .Values.snappymail.logToStderr | quote }}
- name: MEMORY_LIMIT
value: {{ .Values.snappymail.memoryLimit | quote }}
- name: SECURE_COOKIES
value: {{ .Values.snappymail.secureCookies | quote }}
volumeMounts: volumeMounts:
- mountPath: /snappymail/data - mountPath: /snappymail/data
name: snappymaildata name: snappymaildata

8
charts/snappymail/v0.1.0/values.yaml

@ -29,6 +29,12 @@ service:
type: ClusterIP type: ClusterIP
port: 80 port: 80
snappymail:
uploadMaxSize: 25M
memoryLimit: 128M
secureCookies: true
logToStderr: true
ingress: ingress:
enabled: false enabled: false
className: "" className: ""
@ -69,6 +75,8 @@ persistence:
size: 8Gi size: 8Gi
storageClass: "" storageClass: ""
# MariaDB configuration for storing contact information # MariaDB configuration for storing contact information
mariadb: mariadb:
auth: auth:

Loading…
Cancel
Save