From 9492af26208d339a3eae0029fa86e33b90f3320e Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Sun, 18 May 2025 22:53:11 -0400 Subject: [PATCH] ports --- charts/compose-app/templates/deploy.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/compose-app/templates/deploy.yaml b/charts/compose-app/templates/deploy.yaml index ad6c3f8..6870d40 100644 --- a/charts/compose-app/templates/deploy.yaml +++ b/charts/compose-app/templates/deploy.yaml @@ -29,7 +29,8 @@ spec: image: {{ $data.image | quote }} ports: {{ range $p := $data.ports }} - - containerPort: {{ $p }} + - containerPort: {{ $p.port }} + protocol: {{ $p.protocol | default "TCP" | quote }} {{ end }} {{ if $data.volumes }} {{ range $volname, $mountPath := $data.volumes }} @@ -63,6 +64,7 @@ spec: {{ range $port := $data.ports }} - name: {{ $port.name | default "http" | quote }} port: {{ $port.port }} + protocol: {{ $port.protocol | default "TCP" | quote }} targetPort: {{ $port.port }} {{ end }}