Skip to content

Commit 8b64cc3

Browse files
committed
Rename wireguard to netbirdPort, add missing proxy config values
1 parent 2458171 commit 8b64cc3

File tree

2 files changed

+31
-8
lines changed

2 files changed

+31
-8
lines changed

charts/netbird-proxy/templates/deployment.yaml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ spec:
100100
- name: NB_PROXY_ALLOW_INSECURE
101101
value: "true"
102102
{{- end }}
103-
{{- if .Values.logging.debug }}
104-
- name: NB_PROXY_DEBUG_LOGS
105-
value: "true"
103+
{{- if and .Values.logging.level (ne .Values.logging.level "info") }}
104+
- name: NB_PROXY_LOG_LEVEL
105+
value: {{ .Values.logging.level | quote }}
106106
{{- end }}
107107
{{- if .Values.proxy.domain }}
108108
- name: NB_PROXY_DOMAIN
@@ -120,6 +120,18 @@ spec:
120120
- name: NB_PROXY_PROXY_PROTOCOL
121121
value: "true"
122122
{{- end }}
123+
{{- if .Values.proxy.maxDialTimeout }}
124+
- name: NB_PROXY_MAX_DIAL_TIMEOUT
125+
value: {{ .Values.proxy.maxDialTimeout | quote }}
126+
{{- end }}
127+
{{- if .Values.proxy.maxSessionIdleTimeout }}
128+
- name: NB_PROXY_MAX_SESSION_IDLE_TIMEOUT
129+
value: {{ .Values.proxy.maxSessionIdleTimeout | quote }}
130+
{{- end }}
131+
{{- if .Values.preSharedKey }}
132+
- name: NB_PROXY_PRESHARED_KEY
133+
value: {{ .Values.preSharedKey | quote }}
134+
{{- end }}
123135
{{- if .Values.acme.enabled }}
124136
- name: NB_PROXY_ACME_CERTIFICATES
125137
value: "true"
@@ -139,6 +151,10 @@ spec:
139151
{{- end }}
140152
- name: NB_PROXY_CERT_LOCK_METHOD
141153
value: {{ .Values.acme.certLockMethod | quote }}
154+
{{- if .Values.acme.wildcardCertDir }}
155+
- name: NB_PROXY_WILDCARD_CERT_DIR
156+
value: {{ .Values.acme.wildcardCertDir | quote }}
157+
{{- end }}
142158
{{- else }}
143159
- name: NB_PROXY_CERTIFICATE_FILE
144160
value: {{ .Values.tls.certFile | quote }}

charts/netbird-proxy/values.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ proxy:
3232
forwardedProto: "auto"
3333
# -- Comma-separated CIDR ranges of trusted upstream proxies.
3434
trustedProxies: ""
35-
# -- Enable PROXY protocol (v1/v2) on TCP listeners.
36-
# Required when behind L4 proxies that support PROXY protocol.
37-
# that use PROXY protocol to forward real client IPs.
35+
# -- Enable PROXY protocol (v1/v2) on TCP listeners for preserving client IPs.
3836
proxyProtocol: false
37+
# -- Cap per-service backend dial timeout (e.g. "10s"). Empty or "0" means no cap.
38+
maxDialTimeout: ""
39+
# -- Cap per-service session idle timeout (e.g. "5m"). Empty or "0" means no cap.
40+
maxSessionIdleTimeout: ""
3941

4042
# -- Allow users to choose a specific listen port for TCP/UDP services.
4143
# When false, ports are auto-assigned by management. When true, users
@@ -54,6 +56,9 @@ requireSubdomain: false
5456
# network namespace and all listen ports are directly reachable.
5557
hostNetwork: false
5658

59+
# -- Pre-shared key for the tunnel between proxy and peers.
60+
preSharedKey: ""
61+
5762
netbirdPort:
5863
# -- Expose the NetBird UDP port for direct peer connectivity.
5964
enabled: false
@@ -75,6 +80,8 @@ acme:
7580
eabHmacKey: ""
7681
# -- Certificate lock method: auto, flock, or k8s-lease.
7782
certLockMethod: "k8s-lease"
83+
# -- Directory containing wildcard certificate pairs (<name>.crt/<name>.key).
84+
wildcardCertDir: ""
7885

7986
# -- Static TLS certificate configuration (used when acme.enabled=false).
8087
tls:
@@ -121,8 +128,8 @@ health:
121128
address: ":8080"
122129

123130
logging:
124-
# -- Enable debug-level logging.
125-
debug: false
131+
# -- Log level: panic, fatal, error, warn, info, debug, trace.
132+
level: "info"
126133

127134
# -- Directory where certificates are stored inside the container.
128135
certDir: "/certs"

0 commit comments

Comments
 (0)