Fix service port mapping
All checks were successful
Publish Helm Chart / publish (push) Successful in 28s

This commit is contained in:
olof.pettersson
2025-12-11 16:33:46 +01:00
parent ea81554899
commit 563173c1a7
2 changed files with 7 additions and 6 deletions

View File

@ -6,7 +6,7 @@ on:
branches:
- main
paths:
- '*.yaml' # Only trigger if yaml files on main are updated
- '**/*.yaml' # Only trigger if yaml files on main are updated
jobs:
publish:

View File

@ -5,12 +5,13 @@ metadata:
labels:
{{- include "solidtime.labels" . | nindent 4 }}
spec:
type: ClusterIP
type: {{ .Values.service.type }}
ports:
- port: 80
targetPort: 80
- port: {{ .Values.service.port }}
# ✅ CRITICAL: It must use the .Values.service.targetPort variable
# If this line is missing, K8s assumes targetPort == port
targetPort: {{ .Values.service.targetPort | default 8000 }}
protocol: TCP
name: http
selector:
# Matches the labels in deployment-app.yaml
app: solidtime-app
{{- include "solidtime.selectorLabels" . | nindent 4 }}