udp suffix
This commit is contained in:
1 parent
8b352ac7a4
commit
710d9f421e
1 file changed
+4
@@ -28,12 +28,14 @@ spec:
|
||||
name: "{{ $portName }}"
|
||||
protocol: TCP
|
||||
{{ end }}
|
||||
{{- if $v.ports.udp -}}
|
||||
{{ range $portName, $portValue := $v.ports.udp }}
|
||||
- port: {{ $portValue }}
|
||||
targetPort: {{ $portValue }}
|
||||
name: "{{ $portName }}-udp"
|
||||
protocol: UDP
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
@@ -82,10 +84,12 @@ spec:
|
||||
- containerPort: {{ $portValue }}
|
||||
protocol: TCP
|
||||
{{ end }}
|
||||
{{- if $v.ports.udp -}}
|
||||
{{ range $portName, $portValue := $v.ports.udp }}
|
||||
- containerPort: {{ $portValue }}
|
||||
protocol: UDP
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /config
|
||||
|
||||
Reference in new issue
Block a user