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:
@@ -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 }}
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user