fix wg-easy?

Signed-off-by: Michael Thomson <michael@michaelthomson.dev>
This commit is contained in:
2024-10-03 12:55:44 -04:00
parent b86dec624f
commit 6045aa8ce2
4 changed files with 18 additions and 12 deletions

View File

@@ -6,4 +6,4 @@ metadata:
data:
LANG: "en"
WG_HOST: "wireguard.michaelthomson.dev"
WG_PORT: "51822"
WG_PORT: "30000"

View File

@@ -7,17 +7,19 @@ spec:
selector:
matchLabels:
app: wg-easy
strategy:
type: Recreate
template:
metadata:
labels:
app: wg-easy
spec:
securityContext:
sysctls:
- name: net.ipv4.ip_forward
value: "1"
- name: net.ipv4.conf.all.src_valid_mark
value: "1"
# securityContext:
# sysctls:
# - name: net.ipv4.ip_forward
# value: "1"
# - name: net.ipv4.conf.all.src_valid_mark
# value: "1"
containers:
- name: wg-easy
image: ghcr.io/wg-easy/wg-easy
@@ -28,8 +30,11 @@ spec:
optional: false
ports:
- containerPort: 51820
name: wg
protocol: UDP
- containerPort: 51821
name: http
protocol: TCP
securityContext:
capabilities:
add:
@@ -41,5 +46,5 @@ spec:
restartPolicy: Always
volumes:
- name: config
persistentVolumeClaim:
persistentVolumeClaim:
claimName: wg-easy-config

View File

@@ -4,12 +4,13 @@ metadata:
name: wg-easy-dns
namespace: wg-easy
annotations:
metallb.universe.tf/loadBalancerIPs: 192.168.2.249
metallb.universe.tf/loadBalancerIPs: 192.168.2.245
spec:
type: LoadBalancer
selector:
app: wg-easy
ports:
- port: 51822
targetPort: 51820
- name: wg
port: 30000
targetPort: wg
protocol: UDP

View File

@@ -8,5 +8,5 @@ spec:
app: wg-easy
ports:
- port: 80
targetPort: 51821
targetPort: http
name: http