mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 21:09:58 +00:00
wireguard maybe?
This commit is contained in:
@@ -33,11 +33,30 @@ spec:
|
|||||||
name: thinclient
|
name: thinclient
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: deluge-config
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
- mountPath: /downloads
|
- mountPath: /downloads
|
||||||
name: data
|
name: data
|
||||||
subPath: downloads
|
subPath: downloads
|
||||||
|
- name: wireguard
|
||||||
|
image: lscr.io/linuxserver/wireguard:latest
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: wireguard-config
|
||||||
|
optional: false
|
||||||
|
securityContext:
|
||||||
|
capabilities:
|
||||||
|
add:
|
||||||
|
- NET_ADMIN
|
||||||
|
- SYS_MODULE
|
||||||
|
privileged: true
|
||||||
|
ports:
|
||||||
|
- containerPort: 51820
|
||||||
|
name: tun
|
||||||
|
protocol: UDP
|
||||||
|
volumeMounts:
|
||||||
|
- name: wireguard-config
|
||||||
|
mountPath: /config
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: init-media-filesystem
|
- name: init-media-filesystem
|
||||||
image: busybox
|
image: busybox
|
||||||
@@ -51,12 +70,32 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /data
|
- mountPath: /data
|
||||||
name: data
|
name: data
|
||||||
|
- name: init-wireguard-conf
|
||||||
|
image: busybox
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
mkdir -p -v /config/wg_confs
|
||||||
|
cp /wireguard-secret/deluge.conf /config/wg_confs/wg0.conf
|
||||||
|
volumeMounts:
|
||||||
|
- name: wireguard-config
|
||||||
|
mountPath: /config
|
||||||
|
- name: wireguard-secret
|
||||||
|
readOnly: true
|
||||||
|
mountPath: /wireguard-secret
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: deluge-config
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: deluge-config
|
claimName: deluge-config
|
||||||
|
- name: wireguard-config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: wireguard-config
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: media-data
|
claimName: media-data
|
||||||
|
- name: wireguard-secret
|
||||||
|
secret:
|
||||||
|
secretName: wireguard-secret
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
12
media/deluge/pvc-wireguard-config.yaml
Normal file
12
media/deluge/pvc-wireguard-config.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: wireguard-config
|
||||||
|
namespace: media
|
||||||
|
spec:
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
|
storageClassName: longhorn
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
8
media/deluge/wireguard-config.yaml
Normal file
8
media/deluge/wireguard-config.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: wireguard-config
|
||||||
|
namespace: media
|
||||||
|
data:
|
||||||
|
PUID: "1000"
|
||||||
|
PGID: "1000"
|
||||||
14
media/deluge/wireguard-secret.yaml
Normal file
14
media/deluge/wireguard-secret.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
kind: SealedSecret
|
||||||
|
apiVersion: bitnami.com/v1alpha1
|
||||||
|
metadata:
|
||||||
|
name: wireguard-secret
|
||||||
|
namespace: media
|
||||||
|
creationTimestamp:
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: wireguard-secret
|
||||||
|
namespace: media
|
||||||
|
creationTimestamp:
|
||||||
|
encryptedData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