gluetun again

Signed-off-by: Michael Thomson <michael@michaelthomson.dev>
This commit is contained in:
2024-10-02 15:46:06 -04:00
parent 0f54f816b5
commit 2cd3882b49
3 changed files with 15 additions and 20 deletions

View File

@@ -33,20 +33,18 @@ spec:
- name: data
mountPath: /data/downloads
subPath: downloads
- name: wireguard
image: lscr.io/linuxserver/wireguard:latest
- name: gluetun
image: qmcgaw/gluetun
envFrom:
- configMapRef:
name: wireguard-config
name: gluetun-config
securityContext:
capabilities:
add:
- NET_ADMIN
volumeMounts:
- name: wireguard-config-secret
mountPath: /config/wg_confs
- name: wireguard-config
mountPath: /config
mountPath: /gluetun/wireguard
volumes:
- name: qbittorrent-config
persistentVolumeClaim:
@@ -54,9 +52,6 @@ spec:
- name: data
persistentVolumeClaim:
claimName: media-data
- name: wireguard-config
persistentVolumeClaim:
claimName: wireguard-config
- name: wireguard-config-secret
secret:
secretName: wireguard-config-secret

View File

@@ -0,0 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: gluetun-config
namespace: media
data:
VPN_SERVICE_PROVIDER: custom
VPN_TYPE: wireguard
VPN_PORT_FORWARDING: on
VPN_PORT_FORWARDING_PROVIDER: protonvpn
UPDATER_PERIOD: 24h

View File

@@ -1,11 +0,0 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: wireguard-config
namespace: media
data:
PUID: "1000"
GUID: "1000"
TZ: America/Toronto
DOCKER_MODS: linuxserver/mods:universal-package-install
INSTALL_PACKAGES: libnatpmp