-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathhelm-release.yml
More file actions
149 lines (149 loc) · 3.97 KB
/
Copy pathhelm-release.yml
File metadata and controls
149 lines (149 loc) · 3.97 KB
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
137
138
139
140
141
142
143
144
145
146
147
148
149
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s-labs/helm-charts/common-3.1.0/charts/library/common/values.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: qbittorrent
spec:
interval: 15m
chart:
spec:
chart: app-template
version: 4.1.1
interval: 30m
sourceRef:
kind: HelmRepository
name: bjw-s-labs
namespace: flux-system
driftDetection:
mode: enabled
install:
remediation:
retries: -1
upgrade:
remediation:
retries: 3
values:
global:
fullnameOverride: qbittorrent
controllers:
qbittorrent:
enabled: true
type: statefulset
annotations:
reloader.stakater.com/auto: "true"
replicas: 1
statefulset:
volumeClaimTemplates:
- name: config
accessMode: ReadWriteOnce
size: "${VOLSYNC_CAPACITY}"
storageClass: ceph-block
dataSourceRef:
kind: ReplicationDestination
apiGroup: volsync.backube
name: "${APP}"
globalMounts:
- path: /config
pod:
securityContext:
runAsUser: 1026
runAsGroup: &group 100
fsGroup: *group
fsGroupChangePolicy: "OnRootMismatch"
containers:
app:
image:
repository: ghcr.io/home-operations/qbittorrent
tag: 5.1.2
env:
TZ: "America/New_York"
QBT_TORRENTING_PORT: &torrentPort 50413
QBT_WEBUI_PORT: &webPort 8080
probes:
liveness: &probes
enabled: true
custom: true
spec:
httpGet:
path: /api/v2/app/version
port: *webPort
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
readiness: *probes
startup:
enabled: true
spec:
failureThreshold: 30
periodSeconds: 10
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
resources:
requests:
cpu: 10m
memory: 250Mi
limits:
memory: 2000Mi
vuetorrent:
dependsOn: app
image:
repository: registry.k8s.io/git-sync/git-sync
tag: v4.4.1
args:
- --repo=https://github.com/WDaan/VueTorrent
- --ref=latest-release
- --period=86400s
- --root=/add-ons
resources:
requests:
cpu: 10m
memory: 25Mi
service:
app:
controller: qbittorrent
type: LoadBalancer
annotations:
lbipam.cilium.io/ips: 10.0.10.34
ports:
http:
port: *webPort
bittorrent:
enabled: true
port: *torrentPort
protocol: TCP
route:
private:
enabled: true
kind: HTTPRoute
hostnames: ["{{ .Release.Name }}.chkpwd.com"]
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: qbittorrent
port: *webPort
parentRefs:
- name: private
namespace: kube-system
sectionName: https
persistence:
data:
enabled: true
type: nfs
server: "nas-srv-01.chkpwd.com"
path: /volume1/vault-01/media
add-ons:
enabled: true
type: emptyDir
globalMounts:
- path: /add-ons
tmp:
enabled: true
type: emptyDir