62 lines
1.3 KiB
YAML
62 lines
1.3 KiB
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: vpn-pods
|
||
|
namespace: vpn
|
||
|
|
||
|
labels:
|
||
|
app: vpn-pods
|
||
|
kubernetes.io/name: "vpn-pods"
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: vpn-pods
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: vpn-pods
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: qbittorrent
|
||
|
image: lscr.io/linuxserver/qbittorrent:latest
|
||
|
env:
|
||
|
- name: PGID
|
||
|
value: "1000"
|
||
|
- name: PUID
|
||
|
value: "1000"
|
||
|
- name: TZ
|
||
|
value: America/New_York
|
||
|
- name: WEBUI_PORT
|
||
|
value: "8080"
|
||
|
ports:
|
||
|
- name: http
|
||
|
containerPort: 8080
|
||
|
volumeMounts:
|
||
|
- name: qbittorrent-config
|
||
|
mountPath: /config
|
||
|
- name: qbit-download-storage
|
||
|
mountPath: /storage/Torrents
|
||
|
|
||
|
- name: gluetun
|
||
|
image: qmcgaw/gluetun
|
||
|
env:
|
||
|
- name: FIREWALL
|
||
|
value: "off"
|
||
|
- name: DOT
|
||
|
value: "off"
|
||
|
envFrom:
|
||
|
- secretRef:
|
||
|
name: vpnconfig
|
||
|
securityContext:
|
||
|
capabilities:
|
||
|
add:
|
||
|
- NET_ADMIN
|
||
|
|
||
|
volumes:
|
||
|
- name: qbittorrent-config
|
||
|
hostPath:
|
||
|
path: /mnt/MainPool/Kubernetes/qbittorrent
|
||
|
- name: qbit-download-storage
|
||
|
hostPath:
|
||
|
path: /mnt/MainPool/Media/Torrents
|