-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
helmrelease.yaml
136 lines (136 loc) 路 3.66 KB
/
helmrelease.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: qbtools
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 3.2.1
sourceRef:
kind: HelmRepository
name: bjw-s-charts
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
values:
controllers:
tagging:
type: cronjob
cronjob: &cronjob
schedule: "@hourly"
timeZone: &timeZone ${TIMEZONE}
concurrencyPolicy: Forbid
successfulJobsHistory: 1
failedJobsHistory: 1
initContainers:
tagging: &container
image:
repository: ghcr.io/buroa/qbtools
tag: v0.15.3@sha256:68c211301e88ae942629cf05793f860675467aac5cdc7b7500b394f294f62eac
args:
- tagging
- --added-on
- --expired
- --last-activity
- --sites
- --unregistered
- --server=qbittorrent.media.svc.cluster.local
- --port=8080
env:
TZ: *timeZone
resources:
requests:
cpu: 25m
limits:
memory: 256Mi
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
containers:
unregistered:
<<: *container
args:
- prune
- --exclude-tag=expired
- --include-tag=unregistered
- --server=qbittorrent.media.svc.cluster.local
- --port=8080
expired:
<<: *container
args:
- prune
- --exclude-category=manual
- --exclude-tag=activity:24h
- --include-tag=expired
- --server=qbittorrent.media.svc.cluster.local
- --port=8080
pod:
restartPolicy: OnFailure
securityContext: &podSecurityContext
runAsNonRoot: true
runAsUser: 568
runAsGroup: 568
orphaned:
type: cronjob
cronjob:
<<: *cronjob
schedule: "@daily"
containers:
app:
<<: *container
args:
- orphaned
- --exclude-pattern="*_unpackerred"
- --exclude-pattern="*/manual/*"
- --server=qbittorrent.media.svc.cluster.local
- --port=8080
pod:
restartPolicy: OnFailure
securityContext:
<<: *podSecurityContext
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
supplementalGroups:
- 65536
reannounce:
containers:
app:
<<: *container
args:
- reannounce
- --process-seeding
- --server=qbittorrent.media.svc.cluster.local
- --port=8080
pod:
securityContext: *podSecurityContext
persistence:
config:
type: configMap
name: qbtools-configmap
advancedMounts:
tagging:
tagging:
- path: /config/config.yaml
subPath: config.yaml
readOnly: true
media:
type: nfs
server: nas.${PRIVATE_DOMAIN}
path: /volume1/media
advancedMounts:
orphaned:
app:
- path: /media/downloads/torrents
subPath: downloads/torrents