mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 13:09:53 +00:00
fix wg-easy?
Signed-off-by: Michael Thomson <michael@michaelthomson.dev>
This commit is contained in:
@@ -6,4 +6,4 @@ metadata:
|
|||||||
data:
|
data:
|
||||||
LANG: "en"
|
LANG: "en"
|
||||||
WG_HOST: "wireguard.michaelthomson.dev"
|
WG_HOST: "wireguard.michaelthomson.dev"
|
||||||
WG_PORT: "51822"
|
WG_PORT: "30000"
|
||||||
|
|||||||
@@ -7,17 +7,19 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: wg-easy
|
app: wg-easy
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: wg-easy
|
app: wg-easy
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
# securityContext:
|
||||||
sysctls:
|
# sysctls:
|
||||||
- name: net.ipv4.ip_forward
|
# - name: net.ipv4.ip_forward
|
||||||
value: "1"
|
# value: "1"
|
||||||
- name: net.ipv4.conf.all.src_valid_mark
|
# - name: net.ipv4.conf.all.src_valid_mark
|
||||||
value: "1"
|
# value: "1"
|
||||||
containers:
|
containers:
|
||||||
- name: wg-easy
|
- name: wg-easy
|
||||||
image: ghcr.io/wg-easy/wg-easy
|
image: ghcr.io/wg-easy/wg-easy
|
||||||
@@ -28,8 +30,11 @@ spec:
|
|||||||
optional: false
|
optional: false
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 51820
|
- containerPort: 51820
|
||||||
|
name: wg
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
- containerPort: 51821
|
- containerPort: 51821
|
||||||
|
name: http
|
||||||
|
protocol: TCP
|
||||||
securityContext:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
|
|||||||
@@ -4,12 +4,13 @@ metadata:
|
|||||||
name: wg-easy-dns
|
name: wg-easy-dns
|
||||||
namespace: wg-easy
|
namespace: wg-easy
|
||||||
annotations:
|
annotations:
|
||||||
metallb.universe.tf/loadBalancerIPs: 192.168.2.249
|
metallb.universe.tf/loadBalancerIPs: 192.168.2.245
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
selector:
|
selector:
|
||||||
app: wg-easy
|
app: wg-easy
|
||||||
ports:
|
ports:
|
||||||
- port: 51822
|
- name: wg
|
||||||
targetPort: 51820
|
port: 30000
|
||||||
|
targetPort: wg
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
|
|||||||
@@ -8,5 +8,5 @@ spec:
|
|||||||
app: wg-easy
|
app: wg-easy
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 51821
|
targetPort: http
|
||||||
name: http
|
name: http
|
||||||
|
|||||||
Reference in New Issue
Block a user