Stavros kois hace 2 años
padre
commit
c67b7db046

+ 1 - 1
test/wg-easy/1.0.0/templates/deployment.yaml

@@ -48,7 +48,7 @@ spec:
           {{ end }}
           ports:
             - name: udp
-              containerPort: 51820
+              containerPort: {{ .Values.wgUDPPort }}
               protocol: UDP
             - name: web
               containerPort: 51821

+ 1 - 1
test/wg-easy/1.0.0/templates/service.yaml

@@ -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 }}