Fix back and front deploy

This commit is contained in:
dvirlabs 2025-12-11 04:07:32 +02:00
parent bc173e7ab7
commit 786da259ba
2 changed files with 10 additions and 2 deletions

View File

@ -43,12 +43,15 @@ spec:
containerPort: {{ .Values.backend.service.targetPort }} containerPort: {{ .Values.backend.service.targetPort }}
protocol: TCP protocol: TCP
env: env:
{{- toYaml .Values.backend.env | nindent 8 }}
- name: DATABASE_URL - name: DATABASE_URL
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: {{ include "tasko.fullname" . }}-secrets name: {{ include "tasko.fullname" . }}-secrets
key: database-url key: database-url
{{- range $key, $value := .Values.backend.env }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
livenessProbe: livenessProbe:
httpGet: httpGet:
path: / path: /

View File

@ -38,8 +38,13 @@ spec:
- name: http - name: http
containerPort: {{ .Values.frontend.service.targetPort }} containerPort: {{ .Values.frontend.service.targetPort }}
protocol: TCP protocol: TCP
{{- if .Values.frontend.env }}
env: env:
{{- toYaml .Values.frontend.env | nindent 8 }} {{- range $key, $value := .Values.frontend.env }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
livenessProbe: livenessProbe:
httpGet: httpGet:
path: / path: /