fix: corrected targetPort value

finding: The `targetPort` name is the same as
`containers[*].ports[*].name` from deployment/pod definition and not
`spec.ports[*].name` from service definition
This commit is contained in:
Dev Jadeja
2025-03-21 16:45:42 +05:30
parent 961123728d
commit 67b6ff256a

View File

@ -9,7 +9,7 @@ spec:
type: ClusterIP type: ClusterIP
ports: ports:
- port: {{ .Values.service.port }} - port: {{ .Values.service.port }}
targetPort: {{ .Values.service.targetPort | default "static-service" }} targetPort: {{ .Values.service.targetPort | default .Values.service.port }}
protocol: TCP protocol: TCP
name: static-service name: static-service
selector: selector: