Files
auricom-home-cluster/kubernetes/apps/default/qbittorrent/app/helmrelease.yaml
2024-02-20 19:48:34 +01:00

110 lines
2.7 KiB
YAML

---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: &app qbittorrent
namespace: default
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 2.6.0
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
maxHistory: 2
install:
createNamespace: true
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
values:
defaultPodOptions:
securityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
controllers:
main:
containers:
main:
image:
repository: ghcr.io/onedr0p/qbittorrent
tag: 4.6.3@sha256:a4ad890e8c4a287c17d12ca22eb1d84a046aba2efbd882bf7d6eb12459f6a70c
env:
TZ: "${TIMEZONE}"
QBITTORRENT__PORT: &port 8080
QBITTORRENT__BT_PORT: &port-bt 58462
resources:
requests:
cpu: 500m
memory: 1Gi
limits:
memory: 8Gi
service:
main:
ports:
http:
port: *port
bittorent:
enabled: true
controller: main
type: LoadBalancer
loadBalancerIP: "${CLUSTER_LB_QBITTORRENT}"
ports:
bittorrent:
enabled: true
port: *port-bt
protocol: TCP
targetPort: *port-bt
externalTrafficPolicy: Local
ingress:
main:
enabled: true
className: "nginx"
annotations:
hajimari.io/icon: mdi:download
hosts:
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths:
- path: /
service:
name: main
port: http
tls:
- hosts:
- *host
persistence:
config:
enabled: true
existingClaim: *app
globalMounts:
- path: /config
downloads:
type: nfs
server: "192.168.9.10"
path: /mnt/storage/downloads
globalMounts:
- path: /mnt/storage/downloads
music-qbittorrent:
type: nfs
server: "192.168.9.10"
path: /mnt/storage/music/.qbittorrent
globalMounts:
- path: /mnt/storage/music/.qbittorrent
video-qbittorrent:
type: nfs
server: "192.168.9.10"
path: /mnt/storage/video/.qbittorrent
globalMounts:
- path: /mnt/storage/video/.qbittorrent