-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelmrelease.yaml
More file actions
194 lines (172 loc) · 5.02 KB
/
helmrelease.yaml
File metadata and controls
194 lines (172 loc) · 5.02 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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: lidarr
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 3.7.3
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
driftDetection:
mode: enabled
values:
defaultPodOptions:
automountServiceAccountToken: false
enableServiceLinks: false
securityContext:
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
fsGroup: 1000
fsGroupChangePolicy: OnRootMismatch
seccompProfile: { type: RuntimeDefault }
controllers:
lidarr:
annotations:
reloader.stakater.com/auto: "true"
containers:
app:
image:
repository: ghcr.io/home-operations/lidarr
tag: 2.14.5.4836@sha256:c611fcd98569310ae072e66793ee985480298d95363930f9ea5e27795b5d4256
env:
LIDARR__APP__INSTANCENAME: Lidarr
LIDARR__AUTHENTICATION_METHOD: External
LIDARR__AUTHENTICATION_REQUIRED: Enabled
LIDARR__AUTH__REQUIRED: DisabledForLocalAddresses
LIDARR__LOG__DBENABLED: "False"
LIDARR__LOG__LEVEL: info
LIDARR__SERVER__PORT: &port 8686
LIDARR__APP__THEME: dark
LIDARR__LOG__ANALYTICSENABLED: 'false'
LIDARR__AUTH__APIKEY: &apikey
valueFrom:
secretKeyRef:
name: lidarr-secret
key: API_KEY
LIDARRR__POSTGRES__HOST:
secretKeyRef:
name: lidarr-db-app
key: host
LIDARRR__POSTGRES__PORT:
secretKeyRef:
name: lidarr-db-app
key: port
LIDARRR__POSTGRES__USER:
secretKeyRef:
name: lidarr-db-app
key: user
LIDARRR__POSTGRES__PASSWORD:
secretKeyRef:
name: lidarr-db-app
key: password
LIDARRR__POSTGRES__MAINDB:
secretKeyRef:
name: lidarr-db-app
key: dbname
TZ: ${TIMEZONE}
probes:
liveness:
enabled: true
readiness:
enabled: true
startup:
enabled: true
spec:
failureThreshold: 30
periodSeconds: 5
resources:
requests:
cpu: 10m
memory: 256Mi
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities: { drop: [ 'ALL' ] }
metrics:
dependsOn: app
image:
repository: ghcr.io/onedr0p/exportarr
tag: v2.3.0
args: [ 'lidarr' ]
env:
PORT: &metricsPort 9707
URL: 'http://{{ .Release.Name }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.service.app.ports.http.port }}'
APIKEY: *apikey
ENABLE_ADDITIONAL_METRICS: true
LOG_LEVEL: warn
resources:
requests:
cpu: 10m
memory: 100Mi
limits:
memory: 125Mi
service:
app:
primary: true
controller: lidarr
ports:
http:
port: *port
metrics:
nameOverride: metrics
controller: lidarr
ports:
metrics:
port: *metricsPort
serviceMonitor:
metrics:
enabled: true
serviceName: lidarr-metrics
endpoints:
- port: metrics
scheme: http
path: /metrics
interval: 10m
scrapeTimeout: 2m
ingress:
app:
annotations:
external-dns.alpha.kubernetes.io/target: internal.${SECRET_DOMAIN}
gethomepage.dev/enabled: "true"
gethomepage.dev/group: Downloads
gethomepage.dev/icon: sh-lidarr.svg
gethomepage.dev/name: Lidarr
className: internal
hosts:
- host: "{{ .Release.Name }}.${SECRET_DOMAIN}"
paths:
- path: /
service:
identifier: app
port: http
persistence:
config:
existingClaim: lidarr-2
tmp:
type: emptyDir
logs:
type: emptyDir
globalMounts:
- path: /config/logs
media:
type: nfs
server: ${SECRET_NAS_IP}
path: /volume1/Media
globalMounts:
- path: /Media