k3s-cluster/cluster/apps/download/qbittorrent/deployment.yaml

62 lines
1.4 KiB
YAML
Raw Normal View History

apiVersion: apps/v1
kind: Deployment
metadata:
name: qbittorrent
namespace: download
labels:
app: qbittorrent
kubernetes.io/name: "qbittorrent"
spec:
replicas: 1
selector:
matchLabels:
app: qbittorrent
template:
metadata:
labels:
app: qbittorrent
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:
2023-04-08 15:02:00 -04:00
name: qbittorrent-secrets
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