This commit is contained in:
ari committed 2025-05-18 22:53:11 -04:00
1 parent 14ef82c04a
commit 9492af2620
1 file changed
+3 -1
+3 -1
View File
@@ -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 }}