From 5a561b3092f99292326b4d6bde314eb68ddde90d Mon Sep 17 00:00:00 2001 From: vikingowl Date: Sat, 18 Apr 2026 09:00:16 +0200 Subject: [PATCH] fix(helm): CronJob curls the Service port, not the container port MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Service listens on port 80 (target: container 8080). The CronJob was curling :8080 directly, which isn't exposed by the Service — every tick timed out after ~135s with "Could not connect to server". Switch to {{ .Values.service.port }} so the template always tracks the actual Service port. --- backend/deploy/helm/templates/discovery-cron.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/deploy/helm/templates/discovery-cron.yaml b/backend/deploy/helm/templates/discovery-cron.yaml index 1b0ff5e..27f00d0 100644 --- a/backend/deploy/helm/templates/discovery-cron.yaml +++ b/backend/deploy/helm/templates/discovery-cron.yaml @@ -37,7 +37,7 @@ spec: curl -fsS --retry 2 --retry-delay 10 \ -X POST \ -H "Authorization: Bearer $DISCOVERY_TOKEN" \ - "http://{{ include "marktvogt-backend.fullname" . }}:8080/api/v1/admin/discovery/tick" + "http://{{ include "marktvogt-backend.fullname" . }}:{{ .Values.service.port }}/api/v1/admin/discovery/tick" env: - name: DISCOVERY_TOKEN valueFrom: