port names
This commit is contained in:
1 parent
5a8fd84e9c
commit
8a6baeb8d6
1 file changed
+2
@@ -91,11 +91,13 @@ spec:
|
|||||||
{{ range $portName, $portValue := $v.ports.tcp }}
|
{{ range $portName, $portValue := $v.ports.tcp }}
|
||||||
- containerPort: {{ $portValue }}
|
- containerPort: {{ $portValue }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
name: {{$portName}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- if $v.ports.udp -}}
|
{{- if $v.ports.udp -}}
|
||||||
{{ range $portName, $portValue := $v.ports.udp }}
|
{{ range $portName, $portValue := $v.ports.udp }}
|
||||||
- containerPort: {{ $portValue }}
|
- containerPort: {{ $portValue }}
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
|
name: {{$portName}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|||||||
Reference in new issue
Block a user