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