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-06-15 19:37:56 +00:00
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
2023-05-11 19:35:36 +00:00
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: qbittorrent
|
|
|
|
namespace: download
|
|
|
|
spec:
|
|
|
|
interval: 5m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: app-template
|
2024-12-14 00:15:32 +00:00
|
|
|
version: 3.5.1
|
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-12-14 00:33:08 +00:00
|
|
|
tag: 5.0.2
|
2024-04-20 20:16:46 +00:00
|
|
|
env:
|
2024-12-14 00:15:32 +00:00
|
|
|
QBITTORRENT__PORT: &qbitPort 8080
|
2024-04-20 20:16:46 +00:00
|
|
|
securityContext:
|
|
|
|
runAsGroup: 10000
|
|
|
|
runAsUser: 10000
|
|
|
|
fsGroup: 10000
|
|
|
|
fsGroupChangePolicy: "OnRootMismatch"
|
2024-12-14 00:15:32 +00:00
|
|
|
|
2024-04-20 20:16:46 +00:00
|
|
|
gluetun:
|
|
|
|
image:
|
|
|
|
repository: qmcgaw/gluetun
|
2024-12-14 18:44:49 +00:00
|
|
|
tag: v3.39.1
|
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
|
2024-12-14 00:15:32 +00:00
|
|
|
|
2024-04-20 20:16:46 +00:00
|
|
|
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:
|
2024-12-14 00:15:32 +00:00
|
|
|
port: *qbitPort
|
2023-05-11 19:35:36 +00:00
|
|
|
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
|
|
|
|
hosts:
|
2024-12-14 00:15:32 +00:00
|
|
|
- host: "qbit.${SECRET_NEW_DOMAIN}"
|
2023-05-11 19:35:36 +00:00
|
|
|
paths:
|
|
|
|
- path: /
|
2024-04-20 20:16:46 +00:00
|
|
|
service:
|
|
|
|
identifier: app
|
|
|
|
port: http
|
2023-05-11 19:35:36 +00:00
|
|
|
|
|
|
|
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:
|
2024-12-14 00:15:32 +00:00
|
|
|
existingClaim: 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-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
|
2024-12-14 00:15:32 +00:00
|
|
|
- path: /tmp/gluetun
|
2024-04-20 20:16:46 +00:00
|
|
|
port-manager:
|
2024-12-14 00:15:32 +00:00
|
|
|
- path: /tmp/gluetun
|
|
|
|
readOnly: true
|