Add wg port

This commit is contained in:
Viktor Liu
2026-02-10 19:56:59 +08:00
parent 7d9ccc04ff
commit 83d7eddb98
4 changed files with 27 additions and 0 deletions
@@ -64,6 +64,11 @@ spec:
containerPort: {{ include "netbird-proxy.port" .Values.debug.address | default 8444 }}
protocol: TCP
{{- end }}
{{- if .Values.wireguard.enabled }}
- name: wireguard
containerPort: {{ .Values.wireguard.port }}
protocol: UDP
{{- end }}
env:
- name: USER
value: "netbird"
@@ -136,6 +141,10 @@ spec:
- name: NB_PROXY_OIDC_SCOPES
value: {{ .Values.oidc.scopes | quote }}
{{- end }}
{{- if .Values.wireguard.enabled }}
- name: NB_PROXY_WG_PORT
value: {{ .Values.wireguard.port | quote }}
{{- end }}
{{- if .Values.debug.enabled }}
- name: NB_PROXY_DEBUG_ENDPOINT
value: "true"
@@ -25,6 +25,10 @@ spec:
- port: debug
protocol: TCP
{{- end }}
{{- if .Values.wireguard.enabled }}
- port: wireguard
protocol: UDP
{{- end }}
{{- with .Values.networkPolicy.additionalIngress }}
{{- toYaml . | nindent 4 }}
{{- end }}
@@ -43,3 +43,9 @@ spec:
targetPort: debug
protocol: TCP
{{- end }}
{{- if .Values.wireguard.enabled }}
- name: wireguard
port: {{ .Values.wireguard.port }}
targetPort: wireguard
protocol: UDP
{{- end }}
+8
View File
@@ -33,6 +33,14 @@ proxy:
# -- Comma-separated CIDR ranges of trusted upstream proxies.
trustedProxies: ""
wireguard:
# -- Enable WireGuard UDP port exposure for P2P connectivity.
# Only works with single-account deployments; multiple accounts
# will fail to bind the same port.
enabled: false
# -- Fixed WireGuard port. Set to 0 for random OS-assigned port.
port: 51820
acme:
# -- Enable ACME certificate generation.
enabled: true