2024-01-23 01:17:39 +00:00
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
2024-01-02 22:36:31 +00:00
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: qbit-manage
|
|
|
|
namespace: download
|
|
|
|
spec:
|
|
|
|
interval: 5m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: app-template
|
|
|
|
version: 1.3.x
|
|
|
|
sourceRef:
|
|
|
|
kind: HelmRepository
|
|
|
|
name: bjws-charts
|
|
|
|
namespace: flux-system
|
|
|
|
|
|
|
|
values:
|
|
|
|
initContainers:
|
|
|
|
# this init container copies the read only config from the configmap volume, into
|
|
|
|
# an emptydir volume mount that the pod can write to.
|
|
|
|
copy-config:
|
2024-01-23 01:19:55 +00:00
|
|
|
image: alpine:3.19
|
2024-01-02 22:36:31 +00:00
|
|
|
command:
|
|
|
|
- /bin/sh
|
|
|
|
- -c
|
|
|
|
- "ls /tmp/config-ro
|
2024-01-07 23:14:55 +00:00
|
|
|
&& cp -r /tmp/config-ro/. /tmp/config/
|
|
|
|
&& chmod 777 /tmp/config/config.yml
|
2024-01-02 22:36:31 +00:00
|
|
|
&& ls /tmp/config"
|
|
|
|
volumeMounts:
|
|
|
|
- name: config-ro
|
|
|
|
mountPath: /tmp/config-ro
|
|
|
|
- name: config
|
|
|
|
mountPath: /tmp/config
|
|
|
|
|
|
|
|
image:
|
|
|
|
repository: bobokun/qbit_manage
|
2024-05-18 15:38:13 +00:00
|
|
|
tag: "v4.1.4"
|
2024-01-02 22:36:31 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
QBT_STARTUP_DELAY: 45 # seconds
|
|
|
|
QBT_SCHEDULE: 720 # 720min = 12hr
|
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
persistence:
|
|
|
|
storage:
|
|
|
|
enabled: true
|
|
|
|
type: hostPath
|
|
|
|
hostPath: /mnt/MainPool/Media/Torrents
|
|
|
|
mountPath: /storage/Torrents
|
|
|
|
|
|
|
|
config:
|
|
|
|
enabled: true
|
|
|
|
type: emptyDir
|
2024-01-07 23:14:55 +00:00
|
|
|
defaultMode: 777
|
2024-01-02 22:36:31 +00:00
|
|
|
mountPath: /config
|
|
|
|
|
|
|
|
config-ro:
|
|
|
|
enabled: true
|
|
|
|
type: custom
|
|
|
|
mountPath: /config-ro
|
|
|
|
volumeSpec:
|
|
|
|
configMap:
|
|
|
|
name: qbit-manage
|
|
|
|
items:
|
|
|
|
- key: "config.yml"
|
|
|
|
path: "config.yml"
|
|
|
|
|
2024-01-07 23:02:12 +00:00
|
|
|
podSecurityContext:
|
|
|
|
runAsNonRoot: true
|
|
|
|
runAsUser: 10000
|
|
|
|
runAsGroup: 10000
|
|
|
|
fsGroup: 10000
|
|
|
|
fsGroupChangePolicy: OnRootMismatch
|