add mount for ConfigMap

This commit is contained in:
James 2022-11-17 23:34:10 +00:00
parent a36699ad3e
commit 1251c66131

View File

@ -35,6 +35,12 @@ spec:
- name: http - name: http
containerPort: {{ .Values.service.port }} containerPort: {{ .Values.service.port }}
protocol: TCP protocol: TCP
{{- if .Values.customConfig.enabled }}
volumeMounts:
- name: custom-config
mountPath: /app/config.json
subPath: config
{{- end }}
livenessProbe: livenessProbe:
httpGet: httpGet:
path: / path: /
@ -57,3 +63,9 @@ spec:
tolerations: tolerations:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- if .Values.customConfig.enabled }}
volumes:
- name: custom-config
configMap:
name: {{ include "cinny.fullname" . }}
{{- end }}