2023-05-11 19:35:36 +00:00
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: qbittorrent
|
|
|
|
namespace: download
|
|
|
|
spec:
|
|
|
|
interval: 5m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: app-template
|
|
|
|
version: 1.3.x
|
|
|
|
sourceRef:
|
|
|
|
kind: HelmRepository
|
|
|
|
name: bjws-charts
|
|
|
|
namespace: flux-system
|
|
|
|
|
|
|
|
values:
|
|
|
|
image:
|
2023-06-02 04:37:13 +00:00
|
|
|
repository: lscr.io/linuxserver/qbittorrent
|
2023-08-10 17:51:11 +00:00
|
|
|
tag: "4.5.4"
|
2023-05-11 19:35:36 +00:00
|
|
|
|
|
|
|
# Metrics sidecar
|
|
|
|
sidecars:
|
|
|
|
gluetun:
|
2023-12-14 03:18:52 +00:00
|
|
|
image: qmcgaw/gluetun:v3.36
|
2023-05-11 19:35:36 +00:00
|
|
|
env:
|
2023-09-03 15:07:46 +00:00
|
|
|
- name: FIREWALL_VPN_INPUT_PORTS
|
2023-09-14 00:07:48 +00:00
|
|
|
value: "40574"
|
2023-09-03 15:07:46 +00:00
|
|
|
- name: FIREWALL_INPUT_PORTS
|
2023-12-14 03:18:52 +00:00
|
|
|
value: "8080,17871" # 17871 is the prometheus exporter
|
2023-05-11 19:35:36 +00:00
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
|
|
|
name: qbittorrent-secrets
|
|
|
|
securityContext:
|
|
|
|
capabilities:
|
|
|
|
add:
|
|
|
|
- NET_ADMIN
|
2023-12-14 03:18:52 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: gluetun-tmp
|
|
|
|
mountPath: /tmp/gluetun/
|
|
|
|
|
|
|
|
port-manager:
|
|
|
|
image: git.seanomik.net/seanomik/gluetun-qbit-port-updater:v0.1.1
|
|
|
|
imagePullPolicy: Always
|
|
|
|
env:
|
|
|
|
PORT_UPD_QBITTORRENT_HOST: localhost
|
|
|
|
PORT_UPD_QBITTORRENT_PORT: "8080"
|
|
|
|
# safe to have in plain text since qbittorrent is exposed through authentik.
|
|
|
|
PORT_UPD_QBITTORRENT_LOGIN: &qbitLogin admin
|
|
|
|
PORT_UPD_QBITTORRENT_PASSWORD: &qbitPass adminadmin
|
|
|
|
PORT_UPD_PORT_FILE: /tmp/gluetun/forwarded_port
|
|
|
|
volumeMounts:
|
|
|
|
- name: gluetun-tmp
|
|
|
|
mountPath: /tmp/gluetun/
|
2023-05-11 19:38:21 +00:00
|
|
|
|
2023-05-11 19:35:36 +00:00
|
|
|
metrics:
|
2023-08-10 17:51:11 +00:00
|
|
|
image: caseyscarborough/qbittorrent-exporter:v1.3.2
|
2023-05-11 19:47:11 +00:00
|
|
|
env:
|
2023-12-14 03:18:52 +00:00
|
|
|
QBITTORRENT_BASE_URL: "http://localhost:8080"
|
|
|
|
# safe to have in plain text since qbittorrent is exposed through authentik.
|
|
|
|
QBITTORRENT_LOGIN: *qbitLogin
|
|
|
|
QBITTORRENT_PASSWORD: *qbitPass
|
2023-05-11 19:35:36 +00:00
|
|
|
ports:
|
|
|
|
- name: metrics
|
|
|
|
containerPort: 17871
|
|
|
|
|
|
|
|
env:
|
|
|
|
TZ: America/New_York
|
2023-06-02 04:37:13 +00:00
|
|
|
PGID: "10000"
|
|
|
|
PUID: "10000"
|
|
|
|
WEBUI_PORT: "8080"
|
2023-05-11 19:35:36 +00:00
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
labels:
|
2023-05-11 19:38:21 +00:00
|
|
|
app: qbittorrent-service
|
2023-05-11 19:35:36 +00:00
|
|
|
|
|
|
|
ports:
|
|
|
|
http:
|
|
|
|
port: 8080
|
|
|
|
|
|
|
|
metrics:
|
|
|
|
enabled: true
|
|
|
|
port: 17871
|
|
|
|
protocol: HTTP
|
|
|
|
|
|
|
|
ingress:
|
|
|
|
main:
|
|
|
|
enabled: true
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt-production
|
|
|
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
|
|
traefik.ingress.kubernetes.io/router.middlewares: traefik-authentik@kubernetescrd
|
|
|
|
hosts:
|
|
|
|
- host: &host "qbit.${SECRET_NEW_DOMAIN}"
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
pathType: Prefix
|
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- *host
|
|
|
|
secretName: wildcard-main-tls
|
|
|
|
|
|
|
|
persistence:
|
|
|
|
storage:
|
|
|
|
enabled: true
|
|
|
|
type: hostPath
|
|
|
|
hostPath: /mnt/MainPool/Media/Torrents
|
|
|
|
mountPath: /storage/Torrents
|
|
|
|
config:
|
|
|
|
enabled: true
|
|
|
|
type: hostPath
|
|
|
|
hostPath: /mnt/MainPool/Kubernetes/qbittorrent
|
|
|
|
mountPath: /config
|
2023-09-01 00:44:57 +00:00
|
|
|
cookies:
|
|
|
|
enabled: true
|
|
|
|
type: secret
|
|
|
|
name: cookie-secret
|
|
|
|
mountPath: /etc/tokens
|
2023-12-14 03:18:52 +00:00
|
|
|
gluetun-tmp:
|
|
|
|
enabled: true
|
|
|
|
type: emptyDir
|
2023-05-11 19:35:36 +00:00
|
|
|
|
2023-06-02 04:37:13 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 10m
|
|
|
|
memory: 250Mi
|
|
|
|
limits:
|
|
|
|
memory: 6000Mi
|