Update deployment.yaml

- Add volumeMounts for initContainers
- Add option "offline" for wiki container when we want to use sideload (Need to add "offline: $(OFFLINE_ACTIVE)" into /wiki/config.yml for the docker image)
pull/6057/head
B3nBeng 3 years ago committed by GitHub
parent 54dbf9ad00
commit 6a1e925d3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -32,6 +32,10 @@ spec:
command: [ "sh", "-c" ]
args: [ "mkdir -p /wiki/data/sideload && git clone --depth=1 {{ .Values.sideload.repoURL }} /wiki/data/sideload/" ]
{{- end }}
{{- with .Values.volumeMounts }}
volumeMounts:
{{- toYaml . | nindent 12 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
@ -71,6 +75,8 @@ spec:
{{- end }}
- name: HA_ACTIVE
value: {{ .Values.replicaCount | int | le 2 | quote }}
- name: OFFLINE_ACTIVE
value: "{{ default "false" .Values.offline }}"
{{- with .Values.volumeMounts }}
volumeMounts:
{{- toYaml . | nindent 12 }}

Loading…
Cancel
Save