-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathhelm-release.yml
More file actions
174 lines (174 loc) · 4.88 KB
/
Copy pathhelm-release.yml
File metadata and controls
174 lines (174 loc) · 4.88 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
---
# 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: sabnzbd
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: sabnzbd
defaultPodOptions:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 80
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- jellyfin
- plex
topologyKey: "kubernetes.io/hostname"
controllers:
sabnzbd:
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/sabnzbd
tag: 4.5.2
pullPolicy: IfNotPresent
env:
TZ: "America/New_York"
SABNZBD__PORT: &port 8080
SABNZBD__HOST_WHITELIST_ENTRIES: >-
{{ .Release.Name }},
{{ .Release.Name }}.media,
{{ .Release.Name }}.media.svc,
{{ .Release.Name }}.media.svc.cluster,
{{ .Release.Name }}.media.svc.cluster.local,
{{ .Release.Name }}.chkpwd.com
envFrom:
- secretRef:
name: sabnzbd
probes:
liveness: &probes
enabled: true
custom: true
spec:
httpGet:
path: /api?mode=version
port: *port
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
readiness: *probes
startup:
enabled: false
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
resources:
requests:
cpu: 10m
memory: 479Mi
limits:
memory: 8000Mi
metrics:
dependsOn: app
image:
repository: ghcr.io/onedr0p/exportarr
tag: v2.2.0
env:
PORT: &metricsPort 9707
URL: "http://{{ .Release.Name }}.{{ .Release.Namespace }}.svc.cluster.local:8080"
APIKEY:
valueFrom:
secretKeyRef:
name: sabnzbd
key: SABNZBD__API_KEY
args: ["sabnzbd"]
resources:
requests:
cpu: 10m
memory: 100Mi
limits:
memory: 125Mi
service:
app:
primary: true
controller: sabnzbd
ports:
http:
port: *port
metrics:
controller: sabnzbd
ports:
metrics:
port: *metricsPort
route:
private:
enabled: true
kind: HTTPRoute
hostnames: ["{{ .Release.Name }}.chkpwd.com"]
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: sabnzbd-app
port: *port
- matches:
- path:
type: PathPrefix
value: /metrics
backendRefs:
- name: sabnzbd-metrics
port: *metricsPort
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