add mount for ConfigMap

This commit is contained in:
James 2022-11-17 23:34:10 +00:00
parent a36699ad3e
commit 1251c66131
1 changed files with 12 additions and 0 deletions

View File

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