⬆️ qbittorrent app-template v2

This commit is contained in:
auricom
2023-11-03 16:30:10 +01:00
parent c18f981fb3
commit abea4e1c85
4 changed files with 45 additions and 59 deletions

View File

@@ -10,7 +10,7 @@ spec:
chart: chart:
spec: spec:
chart: app-template chart: app-template
version: 1.5.1 version: 2.0.3
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: bjw-s name: bjw-s
@@ -27,6 +27,17 @@ spec:
uninstall: uninstall:
keepHistory: false keepHistory: false
values: values:
defaultPodOptions:
securityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
controllers:
main:
type: statefulset
containers:
main:
image: image:
repository: ghcr.io/onedr0p/qbittorrent repository: ghcr.io/onedr0p/qbittorrent
tag: 4.6.0@sha256:cb6259df3be61a5108bc4f85b09a523fc4b250589ca9b315ef927cbdf779afb6 tag: 4.6.0@sha256:cb6259df3be61a5108bc4f85b09a523fc4b250589ca9b315ef927cbdf779afb6
@@ -34,6 +45,20 @@ spec:
TZ: "${TIMEZONE}" TZ: "${TIMEZONE}"
QBITTORRENT__PORT: &port 8080 QBITTORRENT__PORT: &port 8080
QBITTORRENT__BT_PORT: &port-bt 58462 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: service:
main: main:
ports: ports:
@@ -41,6 +66,7 @@ spec:
port: *port port: *port
bittorent: bittorent:
enabled: true enabled: true
controller: main
type: LoadBalancer type: LoadBalancer
loadBalancerIP: "${CLUSTER_LB_QBITTORRENT}" loadBalancerIP: "${CLUSTER_LB_QBITTORRENT}"
ports: ports:
@@ -53,57 +79,35 @@ spec:
ingress: ingress:
main: main:
enabled: true enabled: true
ingressClassName: "nginx" className: "nginx"
annotations: 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 hajimari.io/icon: mdi:download
hosts: hosts:
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}" - host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths: paths:
- path: / - path: /
pathType: Prefix service:
name: main
port: http
tls: tls:
- hosts: - hosts:
- *host - *host
podSecurityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: "OnRootMismatch"
supplementalGroups:
- 100
persistence: persistence:
config:
enabled: true
existingClaim: qbittorrent-config
mountPath: /config
downloads: downloads:
enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/downloads path: /mnt/storage/downloads
mountPath: /mnt/storage/downloads globalMounts:
- path: /mnt/storage/downloads
music-qbittorrent: music-qbittorrent:
enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/music/.qbittorrent path: /mnt/storage/music/.qbittorrent
mountPath: /mnt/storage/music/.qbittorrent globalMounts:
- path: /mnt/storage/music/.qbittorrent
video-qbittorrent: video-qbittorrent:
enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/video/.qbittorrent path: /mnt/storage/video/.qbittorrent
mountPath: /mnt/storage/video/.qbittorrent globalMounts:
resources: - path: /mnt/storage/video/.qbittorrent
requests:
cpu: 500m
memory: 1Gi
limits:
memory: 8Gi

View File

@@ -8,4 +8,3 @@ resources:
- ./helmrelease.yaml - ./helmrelease.yaml
- ./jobs - ./jobs
- ./volsync.yaml - ./volsync.yaml
- ./volume.yaml

View File

@@ -30,7 +30,7 @@ metadata:
name: qbittorrent name: qbittorrent
namespace: default namespace: default
spec: spec:
sourcePVC: qbittorrent-config sourcePVC: config-qbittorrent-0
trigger: trigger:
schedule: "0 7 * * *" schedule: "0 7 * * *"
restic: restic:

View File

@@ -1,17 +0,0 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: qbittorrent-config
namespace: default
labels:
app.kubernetes.io/name: &name qbittorrent
app.kubernetes.io/instance: *name
snapshot.home.arpa/enabled: "true"
spec:
accessModes:
- ReadWriteOnce
storageClassName: rook-ceph-block
resources:
requests:
storage: 1Gi