Skip to content

Commit 1ff1960

Browse files
committed
replicated-sdk values and wg-easy values
1 parent 0f1d1ff commit 1ff1960

File tree

3 files changed

+55
-81
lines changed

3 files changed

+55
-81
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
# Values for replicated-sdk chart
1+
# Values for replicated-sdk chart
2+
replicated:
3+
enabled: true

applications/wg-easy/charts/wg-easy/Chart.lock

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ dependencies:
22
- name: common
33
repository: https://bjw-s-labs.github.io/helm-charts
44
version: 3.7.3
5-
digest: sha256:8d4fda6f1e6a4b35c83a8a65274352a9ade5a96ed80cfa68d072ab3f89d18d59
6-
generated: "2025-05-06T17:08:23.761384-04:00"
5+
- name: templates
6+
repository: file://../templates
7+
version: 1.0.0
8+
digest: sha256:4299a659fd462eb3faa8d3edd7930d66aad60bb19842777aa8a54e89e8aeee6f
9+
generated: "2025-05-09T10:01:18.649929-04:00"
Lines changed: 47 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,40 @@
11
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s-labs/helm-charts/app-template-3.7.3/charts/other/app-template/values.schema.json
2+
3+
# Wireguard configuration
4+
wireguard:
5+
# If password is defined will set a password on the web interface
6+
password: "testpass"
7+
# See https://github.com/WeeJeWel/wg-easy for configuration options
8+
host: "example.com"
9+
port: 51820 # This is used in the postUp
10+
defaultAddress: "10.10.10.x"
11+
defaultDns: "1.1.1.1"
12+
allowedIps: "0.0.0.0/5, 8.0.0.0/7, 11.0.0.0/8, 12.0.0.0/6, 16.0.0.0/4, 32.0.0.0/3, 64.0.0.0/2, 128.0.0.0/3, 160.0.0.0/5, 168.0.0.0/6, 172.0.0.0/12, 172.32.0.0/11, 172.64.0.0/10, 172.128.0.0/9, 173.0.0.0/8, 174.0.0.0/7, 176.0.0.0/4, 192.0.0.0/9, 192.128.0.0/11, 192.160.0.0/13, 192.169.0.0/16, 192.170.0.0/15, 192.172.0.0/14, 192.176.0.0/12, 192.192.0.0/10, 193.0.0.0/8, 194.0.0.0/7, 196.0.0.0/6, 200.0.0.0/5, 208.0.0.0/4, 224.0.0.0/3"
13+
postUp: "iptables -A FORWARD -i wg0 -o eth0 -d 192.168.0.0/16,172.16.0.0/12,10.0.0.0/8 -j DROP; iptables -t nat -A POSTROUTING -s 10.10.10.0/24 -o eth0 -j MASQUERADE; iptables -A INPUT -p udp -m udp --dport 51820 -j ACCEPT; iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT"
14+
15+
# Shared templates for Traefik routes
16+
templates:
17+
traefikRoutes:
18+
web-tls:
19+
hostName: "example.com"
20+
serviceName: public-web
21+
servicePort: 51821
22+
web:
23+
hostName: "example.com"
24+
serviceName: public-web
25+
servicePort: 51821
26+
227
controllers:
328
main:
29+
pod:
30+
securityContext:
31+
allowPrivilegeEscalation: false
32+
sysctls:
33+
- name: net.ipv4.ip_forward
34+
value: "1"
35+
capabilities:
36+
add:
37+
- NET_ADMIN
438
containers:
539
main:
640
env:
@@ -20,14 +54,6 @@ controllers:
2054
envFrom:
2155
- secretRef:
2256
identifier: webpass
23-
securityContext:
24-
allowPrivilegeEscalation: false
25-
sysctls:
26-
- name: net.ipv4.ip_forward
27-
value: "1"
28-
capabilities:
29-
add:
30-
- NET_ADMIN
3157
image:
3258
repository: ghcr.io/wg-easy/wg-easy
3359
tag: 9.0
@@ -59,16 +85,11 @@ controllers:
5985
periodSeconds: 10
6086
timeoutSeconds: 1
6187
failureThreshold: 5
62-
63-
# Liveness: tcp-socket :51821 delay=0s timeout=5s period=10s #success=1 #failure=5
64-
# Readiness: tcp-socket :51821 delay=0s timeout=1s period=10s #success=1 #failure=5
65-
6688
secrets:
6789
webpass:
6890
enabled: true
69-
data:
70-
PASSWORD: '{{ dig "wireguard" "password" nil .Values | quote }}'
71-
91+
stringData:
92+
PASSWORD: '{{ dig "wireguard" "password" nil .Values | quote }}'
7293
service:
7394
web:
7495
controller: main
@@ -95,7 +116,6 @@ service:
95116
enabled: true
96117
port: 51820
97118
protocol: UDP
98-
99119
persistence:
100120
config:
101121
enabled: true
@@ -107,70 +127,19 @@ persistence:
107127
globalMounts:
108128
- path: /etc/wireguard
109129

110-
# Wireguard configuration
111-
wireguard:
112-
# If password is defined will set a password on the web interface
113-
password: "testpass"
114-
# See https://github.com/WeeJeWel/wg-easy for configuration options
115-
host: "example.com"
116-
port: 51820 # This is used in the postUp
117-
defaultAddress: "10.10.10.x"
118-
defaultDns: "1.1.1.1"
119-
allowedIps: "0.0.0.0/5, 8.0.0.0/7, 11.0.0.0/8, 12.0.0.0/6, 16.0.0.0/4, 32.0.0.0/3, 64.0.0.0/2, 128.0.0.0/3, 160.0.0.0/5, 168.0.0.0/6, 172.0.0.0/12, 172.32.0.0/11, 172.64.0.0/10, 172.128.0.0/9, 173.0.0.0/8, 174.0.0.0/7, 176.0.0.0/4, 192.0.0.0/9, 192.128.0.0/11, 192.160.0.0/13, 192.169.0.0/16, 192.170.0.0/15, 192.172.0.0/14, 192.176.0.0/12, 192.192.0.0/10, 193.0.0.0/8, 194.0.0.0/7, 196.0.0.0/6, 200.0.0.0/5, 208.0.0.0/4, 224.0.0.0/3"
120-
postUp: "iptables -A FORWARD -i wg0 -o eth0 -d 192.168.0.0/16,172.16.0.0/12,10.0.0.0/8 -j DROP; iptables -t nat -A POSTROUTING -s 10.10.10.0/24 -o eth0 -j MASQUERADE; iptables -A INPUT -p udp -m udp --dport 51820 -j ACCEPT; iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT"
121-
122130
# Troubleshoot
123131
troubleshoot:
124132
support-bundles:
125133
replicated:
126134
enabled: true
127-
# wg-easy: # arbitrary name for your custom spec
128-
# enabled: true
129-
# collectors:
130-
# - logs:
131-
# name: wg-easy
132-
# collectorName: wg-easy
133-
# selector:
134-
# - app=wg-easy
135-
# # namespace: {{ .Release.Namespace }}
136-
# containerNames:
137-
# - wg-easy
138-
# securityContext:
139-
# allowPrivilegeEscalation: false
140-
# sysctls:
141-
# - name: net.ipv4.ip_forward
142-
# value: "1"
143-
# capabilities:
144-
# add:
145-
# - NET_ADMIN
146-
# image:
147-
# repository: ghcr.io/wg-easy/wg-easy
148-
# tag: 9.0
149-
# pullPolicy: IfNotPresent
150-
# ports:
151-
# - containerPort: 51821
152-
# protocol: TCP
153-
# - containerPort: 51820
154-
# protocol: UDP
155-
# resources:
156-
# requests:
157-
# cpu: 50m
158-
# memory: 50Mi
159-
# limits:
160-
# cpu: 100m
161-
# memory: 100Mi
162-
163-
164-
wg-easy:
165-
166-
167-
templates:
168-
traefikRoutes:
169-
web-tls:
170-
hostName: "example.com"
171-
serviceName: public-web
172-
servicePort: 51821
173-
web:
174-
hostName: "example.com"
175-
serviceName: public-web
176-
servicePort: 51821
135+
wg-easy: # arbitrary name for your custom spec
136+
enabled: true
137+
collectors:
138+
- logs:
139+
name: wg-easy
140+
collectorName: wg-easy
141+
selector:
142+
- app=wg-easy
143+
namespace: '{{ .Release.Namespace }}'
144+
containerNames:
145+
- wg-easy

0 commit comments

Comments
 (0)