Files
auricom-home-cluster/kubernetes/apps/default/qbittorrent/app/helmrelease.yaml
2024-01-06 23:00:51 +01:00

114 lines
2.9 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.4.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:
type: statefulset
containers:
main:
image:
repository: ghcr.io/onedr0p/qbittorrent
tag: 4.6.2@sha256:fedb62126c82ae0c7192e9052633411294a27e9c233613c03b0a8d168d160040
env:
TZ: "${TIMEZONE}"
QBITTORRENT__PORT: &port 8080
QBITTORRENT__BT_PORT: &port-bt 58462
resources:
requests:
cpu: 500m
memory: 1Gi
limits:
memory: 8Gi
statefulset:
volumeClaimTemplates:
- name: config
accessMode: ReadWriteOnce
size: 1Gi
storageClass: rook-ceph-block
globalMounts:
- path: /config
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:
downloads:
type: nfs
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/downloads
globalMounts:
- path: /mnt/storage/downloads
music-qbittorrent:
type: nfs
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/music/.qbittorrent
globalMounts:
- path: /mnt/storage/music/.qbittorrent
video-qbittorrent:
type: nfs
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/video/.qbittorrent
globalMounts:
- path: /mnt/storage/video/.qbittorrent