fix(helm): rename service to avoid envPrefix conflict

SvelteKit adapter-node uses TASKPLANER_ envPrefix for config.
Kubernetes creates SERVICENAME_* env vars for each service.
Service named "taskplaner" creates TASKPLANER_PORT_* which conflicts.

Changes:
- Add service.name option (default: "tp-app")
- Update ingress to reference configured service name

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Thomas Richter
2026-02-01 18:49:21 +01:00
parent 0945f01563
commit 5e893aaf23
3 changed files with 5 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ spec:
pathType: {{ .pathType }}
backend:
service:
name: {{ include "taskplaner.fullname" $ }}
name: {{ $.Values.service.name | default (include "taskplaner.fullname" $) }}
port:
name: http
{{- end }}

View File

@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "taskplaner.fullname" . }}
name: {{ .Values.service.name | default (include "taskplaner.fullname" .) }}
labels:
{{- include "taskplaner.labels" . | nindent 4 }}
spec:

View File

@@ -36,6 +36,9 @@ securityContext:
- ALL
service:
# Name override to avoid Kubernetes creating TASKPLANER_* env vars
# which conflict with the app's envPrefix
name: "tp-app"
type: ClusterIP
port: 80
targetPort: 3000