enable enviroment variables

This commit is contained in:
2024-03-16 04:11:46 -06:00
parent c2446ab6e2
commit 7c61825d5f
3 changed files with 11 additions and 1 deletions

View File

@@ -40,6 +40,15 @@ spec:
name: cops-books
resources:
{{- toYaml .Values.deployment.resources | nindent 12 }}
env:
{{- range $k,$v := .Values.deployment.env }}
- name: {{ $k }}
value: {{ $v | quote }}
{{- end }}
{{- with .Values.deployment.envFrom }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
livenessProbe:
httpGet:
path: /