From 3d9ff96fa67d48399ff30ad5893133ccdea43add Mon Sep 17 00:00:00 2001 From: davidfrickert Date: Thu, 28 Mar 2024 17:56:38 +0100 Subject: [PATCH] Allow ports to define protocol (UDP / TCP) --- charts/onechart/templates/service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/onechart/templates/service.yaml b/charts/onechart/templates/service.yaml index aeb9cf34..b2d9ff1c 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: