mirror of
https://github.com/truenas/charts.git
synced 2026-06-15 06:28:46 +08:00
fix udp port
This commit is contained in:
@@ -48,7 +48,7 @@ spec:
|
||||
{{ end }}
|
||||
ports:
|
||||
- name: udp
|
||||
containerPort: 51820
|
||||
containerPort: {{ .Values.wgUDPPort }}
|
||||
protocol: UDP
|
||||
- name: web
|
||||
containerPort: 51821
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
{{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }}
|
||||
{{ $ports := list }}
|
||||
{{ $ports = mustAppend $ports (dict "name" "web" "port" .Values.webUIPort "nodePort" .Values.webUIPort "targetPort" 51821) }}
|
||||
{{ $ports = mustAppend $ports (dict "name" "udp" "port" .Values.wgUDPPort "nodePort" .Values.wgUDPPort "targetPort" 51820 "protocol" "UDP") }}
|
||||
{{ $ports = mustAppend $ports (dict "name" "udp" "port" .Values.wgUDPPort "nodePort" .Values.wgUDPPort "targetPort" .Values.wgUDPPort "protocol" "UDP") }}
|
||||
{{ $params := . }}
|
||||
{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }}
|
||||
{{ $_1 := set .Values "extraSelectorLabels" $selectors }}
|
||||
|
||||
Reference in New Issue
Block a user