diff --git a/charts/onechart/templates/service.yaml b/charts/onechart/templates/service.yaml index aeb9cf3..b2d9ff1 100644 --- a/charts/onechart/templates/service.yaml +++ b/charts/onechart/templates/service.yaml @@ -70,7 +70,7 @@ spec: nodePort: {{ .nodePort }} {{- end }} targetPort: {{ .name }} - protocol: TCP + protocol: {{ if .protocol }}{{ .protocol }}{{ else }}TCP{{ end }} {{- end }} {{- end }} selector: