feature: capability to add targetport (optional)

This commit is contained in:
Dev Jadeja
2025-02-11 17:32:55 +05:30
parent ef7d437225
commit 089c279bad

View File

@ -9,7 +9,7 @@ spec:
type: {{ .Values.service.type }} type: {{ .Values.service.type }}
ports: ports:
- port: {{ .Values.service.port }} - port: {{ .Values.service.port }}
targetPort: http targetPort: {{ .Values.service.targetPort | default "http" }}
protocol: TCP protocol: TCP
name: http name: http
{{- if eq .Values.service.type "NodePort" }} {{- if eq .Values.service.type "NodePort" }}