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 }} pathType: {{ .pathType }}
backend: backend:
service: service:
name: {{ include "taskplaner.fullname" $ }} name: {{ $.Values.service.name | default (include "taskplaner.fullname" $) }}
port: port:
name: http name: http
{{- end }} {{- end }}

View File

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

View File

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