Added a configmap example

master
Drew Bednar 3 years ago
parent d1fc54f9b1
commit f0cdf02479

@ -27,6 +27,12 @@ spec:
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- containerPort: 5000 - containerPort: 5000
env:
- name: RANDOM_DATA
valueFrom:
configMapKeyRef:
name: {{ $.Release.Name }}-{{ $.Chart.Name}}-configmap
key: random_data
imagePullSecrets: imagePullSecrets:
- name: {{ $.Values.image_pull_secret }} - name: {{ $.Values.image_pull_secret }}
{{- end }} {{- end }}

@ -0,0 +1,6 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ $.Release.Name }}-{{ $.Chart.Name}}-configmap
data:
random_data: {{ .Values.random | quote }}

@ -9,3 +9,4 @@ services:
image_name: "registry.runcible.io/demo-helm-backend" image_name: "registry.runcible.io/demo-helm-backend"
image_version: "1.1.0" image_version: "1.1.0"
replicas: 1 replicas: 1
random: "tis-random-default"
Loading…
Cancel
Save