mirror of
https://github.com/Thumbscrew/k8s-charts.git
synced 2024-11-09 23:53:50 +00:00
add mount for ConfigMap
This commit is contained in:
parent
a36699ad3e
commit
1251c66131
@ -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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user