2024-05-15 01:21:23 +00:00
|
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
|
2024-01-23 01:17:39 +00:00
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
2023-05-11 19:35:36 +00:00
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: qbittorrent
|
|
|
|
namespace: download
|
|
|
|
spec:
|
|
|
|
interval: 5m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: app-template
|
2024-04-20 20:16:46 +00:00
|
|
|
version: 3.1.0
|
2023-05-11 19:35:36 +00:00
|
|
|
sourceRef:
|
|
|
|
kind: HelmRepository
|
|
|
|
name: bjws-charts
|
|
|
|
namespace: flux-system
|
|
|
|
|
|
|
|
values:
|
2024-04-20 20:16:46 +00:00
|
|
|
controllers:
|
|
|
|
main:
|
|
|
|
|
|
|
|
pod:
|
|
|
|
securityContext:
|
|
|
|
fsGroup: 10000
|
|
|
|
fsGroupChangePolicy: "OnRootMismatch"
|
|
|
|
|
|
|
|
containers:
|
2024-05-15 01:21:23 +00:00
|
|
|
app:
|
2024-04-20 20:16:46 +00:00
|
|
|
image:
|
|
|
|
repository: ghcr.io/onedr0p/qbittorrent
|
2024-05-23 20:08:49 +00:00
|
|
|
tag: 4.5.2
|
2024-04-20 20:16:46 +00:00
|
|
|
|
|
|
|
env:
|
2024-06-11 20:24:14 +00:00
|
|
|
QBITTORRENT__PORT: 8080
|
2024-04-20 20:16:46 +00:00
|
|
|
|
|
|
|
securityContext:
|
|
|
|
runAsGroup: 10000
|
|
|
|
runAsUser: 10000
|
|
|
|
fsGroup: 10000
|
|
|
|
fsGroupChangePolicy: "OnRootMismatch"
|
|
|
|
|
|
|
|
gluetun:
|
|
|
|
image:
|
|
|
|
repository: qmcgaw/gluetun
|
2024-06-11 00:20:43 +00:00
|
|
|
tag: latest
|
2024-04-20 20:16:46 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
FIREWALL_INPUT_PORTS: "8080,17871" # 17871 is the prometheus exporter
|
2024-06-14 19:02:41 +00:00
|
|
|
FIREWALL_VPN_INPUT_PORTS: "41500"
|
2024-05-12 14:59:48 +00:00
|
|
|
HEALTH_VPN_DURATION_INITIAL: "120s"
|
2024-04-20 20:16:46 +00:00
|
|
|
|
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
|
|
|
name: qbittorrent-secrets
|
|
|
|
|
|
|
|
securityContext:
|
|
|
|
capabilities:
|
|
|
|
add:
|
|
|
|
- NET_ADMIN
|
|
|
|
|
|
|
|
metrics:
|
|
|
|
image:
|
|
|
|
repository: caseyscarborough/qbittorrent-exporter
|
|
|
|
tag: v1.3.5
|
|
|
|
|
|
|
|
env:
|
|
|
|
QBITTORRENT_BASE_URL: "http://localhost:8080"
|
|
|
|
# safe to have in plain text since qbittorrent is exposed through authentik.
|
2024-06-15 19:02:06 +00:00
|
|
|
QBITTORRENT_LOGIN: admin
|
|
|
|
QBITTORRENT_PASSWORD: adminadmin
|
2023-05-11 19:35:36 +00:00
|
|
|
|
|
|
|
service:
|
2024-04-20 20:16:46 +00:00
|
|
|
app:
|
|
|
|
controller: main
|
2023-05-11 19:35:36 +00:00
|
|
|
|
|
|
|
ports:
|
|
|
|
http:
|
|
|
|
port: 8080
|
|
|
|
|
|
|
|
metrics:
|
|
|
|
port: 17871
|
|
|
|
protocol: HTTP
|
|
|
|
|
2024-05-15 01:21:23 +00:00
|
|
|
serviceMonitor:
|
|
|
|
app:
|
|
|
|
enabled: true
|
|
|
|
serviceName: qbittorrent
|
|
|
|
|
|
|
|
labels:
|
|
|
|
release: kube-prometheus-stack
|
|
|
|
|
|
|
|
endpoints:
|
|
|
|
- port: metrics
|
|
|
|
scheme: http
|
|
|
|
path: /metrics
|
|
|
|
interval: 3m
|
|
|
|
scrapeTimeout: 1m
|
|
|
|
|
2023-05-11 19:35:36 +00:00
|
|
|
ingress:
|
|
|
|
main:
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt-production
|
|
|
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
|
|
traefik.ingress.kubernetes.io/router.middlewares: traefik-authentik@kubernetescrd
|
2024-04-20 20:16:46 +00:00
|
|
|
|
2023-05-11 19:35:36 +00:00
|
|
|
hosts:
|
|
|
|
- host: &host "qbit.${SECRET_NEW_DOMAIN}"
|
|
|
|
paths:
|
|
|
|
- path: /
|
2024-04-20 20:16:46 +00:00
|
|
|
service:
|
|
|
|
identifier: app
|
|
|
|
port: http
|
|
|
|
|
2023-05-11 19:35:36 +00:00
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- *host
|
|
|
|
|
|
|
|
persistence:
|
|
|
|
storage:
|
|
|
|
type: hostPath
|
|
|
|
hostPath: /mnt/MainPool/Media/Torrents
|
2024-04-20 20:16:46 +00:00
|
|
|
globalMounts:
|
|
|
|
- path: /storage/Torrents
|
|
|
|
|
2023-05-11 19:35:36 +00:00
|
|
|
config:
|
|
|
|
type: hostPath
|
|
|
|
hostPath: /mnt/MainPool/Kubernetes/qbittorrent
|
2024-04-20 20:16:46 +00:00
|
|
|
advancedMounts:
|
|
|
|
main: # controller name
|
2024-05-15 01:21:23 +00:00
|
|
|
app: # container name
|
2024-04-20 20:16:46 +00:00
|
|
|
- path: /config
|
|
|
|
|
2023-09-01 00:44:57 +00:00
|
|
|
cookies:
|
|
|
|
type: secret
|
|
|
|
name: cookie-secret
|
2024-04-20 20:16:46 +00:00
|
|
|
globalMounts:
|
|
|
|
- path: /etc/tokens
|
|
|
|
|
2023-12-14 03:18:52 +00:00
|
|
|
gluetun-tmp:
|
|
|
|
type: emptyDir
|
2024-04-20 20:16:46 +00:00
|
|
|
advancedMounts:
|
|
|
|
main: # controller name
|
|
|
|
gluetun: # container name
|
|
|
|
- path: /tmp/gluetun/
|
|
|
|
port-manager:
|
|
|
|
- path: /tmp/gluetun/
|
|
|
|
readOnly: true
|