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: branches:
- main - main
paths: paths:
- '*.yaml' # Only trigger if yaml files on main are updated - '**/*.yaml' # Only trigger if yaml files on main are updated
jobs: jobs:
publish: publish:

View File

@ -5,12 +5,13 @@ metadata:
labels: labels:
{{- include "solidtime.labels" . | nindent 4 }} {{- include "solidtime.labels" . | nindent 4 }}
spec: spec:
type: ClusterIP type: {{ .Values.service.type }}
ports: ports:
- port: 80 - port: {{ .Values.service.port }}
targetPort: 80 # ✅ 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 protocol: TCP
name: http name: http
selector: selector:
# Matches the labels in deployment-app.yaml {{- include "solidtime.selectorLabels" . | nindent 4 }}
app: solidtime-app