Skip to content

Commit

Permalink
Merge pull request Place1#129 from elcomtik/helm_nodeport
Browse files Browse the repository at this point in the history
  • Loading branch information
DasSkelett authored Mar 9, 2022
2 parents fea7e0b + 570409d commit 94bb2a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions deploy/helm/wg-access-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ ingress:
| wireguard.service.ipFamilyPolicy | string | `"SingleStack"` | |
| wireguard.service.loadBalancerIP | string | `""` | |
| wireguard.service.port | int | `51820` | |
| wireguard.service.nodePort | int | `""` | Use available port from range 30000-32768 |
| persistence.enabled | bool | `false` | |
| persistence.existingClaim | string | `""` | Use existing PVC claim for persistence instead |
| persistence.annotations | object | `{}` | |
Expand Down
3 changes: 3 additions & 0 deletions deploy/helm/wg-access-server/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ spec:
ports:
- port: {{ .Values.wireguard.service.port }}
targetPort: {{ .Values.wireguard.service.port }}
{{- if and ( eq .Values.wireguard.service.type "NodePort" ) ( .Values.wireguard.service.nodePort ) }}
nodePort: {{ .Values.wireguard.service.nodePort }}
{{- end }}
protocol: UDP
name: wireguard
selector:
Expand Down
1 change: 1 addition & 0 deletions deploy/helm/wg-access-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ wireguard:
ipFamilyPolicy: SingleStack
loadBalancerIP: ""
port: 51820
nodePort: ""

persistence:
enabled: false
Expand Down

0 comments on commit 94bb2a0

Please sign in to comment.