Fix back and front deploy
This commit is contained in:
parent
bc173e7ab7
commit
786da259ba
@ -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: /
|
||||||
|
|||||||
@ -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: /
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user