github.com/appscode/helm@v3.0.0-alpha.1+incompatible/docs/examples/nginx/templates/configmap.yaml (about) 1 # This is a simple example of using a config map to create a single page static site. 2 apiVersion: v1 3 kind: ConfigMap 4 metadata: 5 name: {{ template "nginx.fullname" . }} 6 labels: 7 app.kubernetes.io/managed-by: {{ .Release.Service }} 8 app.kubernetes.io/instance: {{ .Release.Name }} 9 helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }} 10 app.kubernetes.io/name: {{ template "nginx.name" . }} 11 data: 12 # When the config map is mounted as a volume, these will be created as files. 13 index.html: {{ .Values.index | quote }} 14 test.txt: test