diff --git a/cinny/templates/deployment.yaml b/cinny/templates/deployment.yaml index b7a99b0..f835ea5 100644 --- a/cinny/templates/deployment.yaml +++ b/cinny/templates/deployment.yaml @@ -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 }}