Skip to content

Open-source personal finance manager. Self-hosted, privacy-first.

fix(helm) nginx dns resolution failure (#868)

jorishaenseler15aa567a043b4d
diff --git a/charts/securo/templates/common/httproute.yaml b/charts/securo/templates/common/httproute.yaml
index 0181d317..3a92e47c 100644
--- a/charts/securo/templates/common/httproute.yaml
+++ b/charts/securo/templates/common/httproute.yaml
@@ -11,6 +11,13 @@ spec:
hostnames:
- {{ .Values.global.domain | quote }}
rules:
+ - matches:
+ - path:
+ type: PathPrefix
+ value: /api
+ backendRefs:
+ - name: {{ include "securo.fullname" . }}-backend
+ port: {{ .Values.backend.service.port }}
- matches:
- path:
type: PathPrefix
diff --git a/charts/securo/templates/common/ingress.yaml b/charts/securo/templates/common/ingress.yaml
index 42981982..9b29dc17 100644
--- a/charts/securo/templates/common/ingress.yaml
+++ b/charts/securo/templates/common/ingress.yaml
@@ -27,6 +27,13 @@ spec:
- host: {{ .Values.global.domain | quote }}
http:
paths:
+ - path: /api
+ pathType: Prefix
+ backend:
+ service:
+ name: {{ include "securo.fullname" $ }}-backend
+ port:
+ name: http
- path: /
pathType: Prefix
backend:
diff --git a/charts/securo/templates/frontend/deployment.yaml b/charts/securo/templates/frontend/deployment.yaml
index 2bef493b..cda07cb4 100644
--- a/charts/securo/templates/frontend/deployment.yaml
+++ b/charts/securo/templates/frontend/deployment.yaml
@@ -44,7 +44,7 @@ spec:
periodSeconds: 10
env:
- name: BACKEND_URL
- value: "http://{{ include "securo.fullname" . }}-backend:8000"
+ value: {{ default (printf "http://%s-backend.%s.svc.cluster.local:%v" (include "securo.fullname" .) .Release.Namespace .Values.backend.service.port) .Values.frontend.backendUrl | quote }}
- name: FRONTEND_URL
value: {{ include "securo.frontendUrl" . | quote }}
volumeMounts:
diff --git a/charts/securo/values.yaml b/charts/securo/values.yaml
index 1e9fb292..904efb7e 100644
--- a/charts/securo/values.yaml
+++ b/charts/securo/values.yaml
@@ -111,6 +111,7 @@ backend:
# Frontend configuration
frontend:
+ backendUrl: ""
replicaCount: 1
image:
repository: ghcr.io/securo-finance/securo-frontend