Files
solidtime-chart/templates/service.yaml

17 lines
548 B
YAML
Raw Normal View History

2025-12-10 20:29:40 +01:00
apiVersion: v1
kind: Service
metadata:
name: {{ include "solidtime.fullname" . }}
labels:
{{- include "solidtime.labels" . | nindent 4 }}
spec:
2025-12-11 16:33:46 +01:00
type: {{ .Values.service.type }}
2025-12-10 20:29:40 +01:00
ports:
2025-12-11 16:33:46 +01:00
- 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 }}
2025-12-10 20:29:40 +01:00
protocol: TCP
name: http
selector:
2025-12-11 16:33:46 +01:00
{{- include "solidtime.selectorLabels" . | nindent 4 }}