mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 21:09:58 +00:00
added config volume for wireguard
This commit is contained in:
@@ -12,6 +12,10 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: qbittorrent
|
app: qbittorrent
|
||||||
spec:
|
spec:
|
||||||
|
securityContext:
|
||||||
|
sysctls:
|
||||||
|
- name: net.ipv4.conf.all.src_valid_mark
|
||||||
|
value: "1"
|
||||||
containers:
|
containers:
|
||||||
- name: qbittorrent
|
- name: qbittorrent
|
||||||
image: lscr.io/linuxserver/qbittorrent:libtorrentv1
|
image: lscr.io/linuxserver/qbittorrent:libtorrentv1
|
||||||
@@ -35,15 +39,14 @@ spec:
|
|||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: wireguard-config
|
name: wireguard-config
|
||||||
securityContext:
|
securityContext:
|
||||||
sysctls:
|
|
||||||
- name: net.ipv4.conf.all.src_valid_mark
|
|
||||||
value: "1"
|
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: wireguard-config-secret
|
- name: wireguard-config-secret
|
||||||
mountPath: /config/wg_confs
|
mountPath: /config/wg_confs
|
||||||
|
- name: wireguard-config
|
||||||
|
mountPath: /config
|
||||||
volumes:
|
volumes:
|
||||||
- name: qbittorrent-config
|
- name: qbittorrent-config
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
@@ -51,6 +54,9 @@ spec:
|
|||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: media-data
|
claimName: media-data
|
||||||
|
- name: wireguard-config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: wireguard-config
|
||||||
- name: wireguard-config-secret
|
- name: wireguard-config-secret
|
||||||
secret:
|
secret:
|
||||||
secretName: wireguard-config-secret
|
secretName: wireguard-config-secret
|
||||||
|
|||||||
12
media/qbittorrent/pvc-wireguard-config.yaml
Normal file
12
media/qbittorrent/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
|
||||||
Reference in New Issue
Block a user