Fix service port mapping
All checks were successful
Publish Helm Chart / publish (push) Successful in 28s
All checks were successful
Publish Helm Chart / publish (push) Successful in 28s
This commit is contained in:
@ -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:
|
||||
|
||||
@ -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 }}
|
||||
Reference in New Issue
Block a user