kubernetes-handbook/manifests/charts/mean/templates/configmap.yaml

15 lines
389 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "fullname" . }}
labels:
app: {{ template "fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
data:
{{ default "database.js" .Values.configfile}}: |-
{{- if .Values.config }}
{{ default "" .Values.config | indent 4 }}
{{- end -}}