mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
104 lines
2.8 KiB
YAML
104 lines
2.8 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/helmrelease_v2beta1.json
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: &app qbittorrent
|
|
namespace: default
|
|
spec:
|
|
interval: 15m
|
|
chart:
|
|
spec:
|
|
chart: app-template
|
|
version: 1.4.0
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: bjw-s
|
|
namespace: flux-system
|
|
maxHistory: 3
|
|
install:
|
|
createNamespace: true
|
|
remediation:
|
|
retries: 3
|
|
upgrade:
|
|
cleanupOnFail: true
|
|
remediation:
|
|
retries: 3
|
|
uninstall:
|
|
keepHistory: false
|
|
values:
|
|
image:
|
|
repository: ghcr.io/onedr0p/qbittorrent
|
|
tag: 4.5.2@sha256:0efdd8d3ef3964d658d78ea7789efa285e9c01d1d436da2903cfde462a7fe67a
|
|
env:
|
|
TZ: "${TIMEZONE}"
|
|
QBITTORRENT__PORT: &port 8080
|
|
QBITTORRENT__BT_PORT: &port-bt 58462
|
|
service:
|
|
main:
|
|
ports:
|
|
http:
|
|
port: *port
|
|
bittorent:
|
|
enabled: true
|
|
type: LoadBalancer
|
|
loadBalancerIP: "${CLUSTER_LB_QBITTORRENT}"
|
|
ports:
|
|
bittorrent:
|
|
enabled: true
|
|
port: *port-bt
|
|
protocol: TCP
|
|
targetPort: *port-bt
|
|
externalTrafficPolicy: Local
|
|
ingress:
|
|
main:
|
|
enabled: true
|
|
ingressClassName: "nginx"
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/configuration-snippet: |
|
|
proxy_hide_header "x-webkit-csp";
|
|
proxy_hide_header "content-security-policy";
|
|
proxy_hide_header "X-Frame-Options";
|
|
proxy_set_header Accept-Encoding "";
|
|
sub_filter '</head>' '<link rel="stylesheet" type="text/css" href="https://theme-park.${SECRET_CLUSTER_DOMAIN}/css/base/qbittorrent/nord.css"></head>';
|
|
sub_filter_once on;
|
|
hajimari.io/icon: mdi:download
|
|
hosts:
|
|
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
tls:
|
|
- hosts:
|
|
- *host
|
|
podSecurityContext:
|
|
runAsUser: 568
|
|
runAsGroup: 568
|
|
fsGroup: 568
|
|
fsGroupChangePolicy: "OnRootMismatch"
|
|
supplementalGroups:
|
|
- 100
|
|
persistence:
|
|
config:
|
|
enabled: true
|
|
existingClaim: qbittorrent-config
|
|
mountPath: /config
|
|
downloads:
|
|
enabled: true
|
|
type: nfs
|
|
server: "${LOCAL_LAN_TRUENAS}"
|
|
path: /mnt/storage/downloads
|
|
mountPath: /mnt/storage/downloads
|
|
video-qbittorrent:
|
|
enabled: true
|
|
type: nfs
|
|
server: "${LOCAL_LAN_TRUENAS}"
|
|
path: /mnt/storage/video/.qbittorrent
|
|
mountPath: /mnt/storage/video/.qbittorrent
|
|
resources:
|
|
requests:
|
|
cpu: 500m
|
|
memory: 1Gi
|
|
limits:
|
|
memory: 8Gi
|