-
Notifications
You must be signed in to change notification settings - Fork 23
/
install_armhf.yaml
651 lines (651 loc) · 14.7 KB
/
install_armhf.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
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
# This is an auto-generated file. DO NOT EDIT
apiVersion: v1
kind: Namespace
metadata:
labels:
app: htpc
name: htpc
---
apiVersion: v1
kind: Service
metadata:
labels:
app: htpc
name: bazarr
namespace: htpc
spec:
ports:
- name: webui
port: 6767
protocol: TCP
targetPort: 6767
selector:
app: htpc
run: bazarr
---
apiVersion: v1
kind: Service
metadata:
labels:
app: htpc
name: emby
namespace: htpc
spec:
ports:
- name: webui
port: 8096
protocol: TCP
targetPort: 8096
selector:
app: htpc
run: emby
---
apiVersion: v1
kind: Service
metadata:
labels:
app: htpc
name: jackett
namespace: htpc
spec:
ports:
- name: webui
port: 9117
protocol: TCP
targetPort: 9117
selector:
app: htpc
run: jackett
---
apiVersion: v1
kind: Service
metadata:
labels:
app: htpc
name: radarr
namespace: htpc
spec:
ports:
- name: webui
port: 7878
protocol: TCP
targetPort: 7878
selector:
app: htpc
run: radarr
---
apiVersion: v1
kind: Service
metadata:
labels:
app: htpc
name: sonarr
namespace: htpc
spec:
ports:
- name: webui
port: 8989
protocol: TCP
targetPort: 8989
selector:
app: htpc
run: sonarr
---
apiVersion: v1
kind: Service
metadata:
labels:
app: htpc
name: transmission
namespace: htpc
spec:
ports:
- name: webui
port: 9091
protocol: TCP
targetPort: 9091
selector:
app: htpc
run: transmission
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: htpc
run: bazarr
name: bazarr
namespace: htpc
spec:
replicas: 1
selector:
matchLabels:
app: htpc
run: bazarr
template:
metadata:
labels:
app: htpc
run: bazarr
spec:
containers:
- env:
- name: TZ
value: Pacific/Auckland
- name: PUID
value: "1000"
- name: PGID
value: "1000"
image: linuxserver/bazarr:arm32v6-latest
name: bazarr
ports:
- containerPort: 6767
name: webui
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: bazarr
- mountPath: /movies
name: htpc-home
subPath: media/movies
- mountPath: /tv
name: htpc-home
subPath: media/tv
initContainers:
- command:
- sh
- -c
- until wget -qO- sonarr:8989/sonarr &> /dev/null && wget -qO- radarr:7878/radarr
&> /dev/null; do echo waiting for sonarr and radarr; sleep 2; done;
image: busybox
name: wait-for-sonarr-and-radarr
- command:
- sh
- -c
- "mkdir -p /htpc/bazarr/config\nexport RADARR_API_KEY=$(cat /htpc/radarr/config.xml
| sed -ne \"/ApiKey/{s/.*<ApiKey>\\(.*\\)<\\/ApiKey>.*/\\1/p;q;}\")\nexport
SONARR_API_KEY=$(cat /htpc/sonarr/config.xml | sed -ne \"/ApiKey/{s/.*<ApiKey>\\(.*\\)<\\/ApiKey>.*/\\1/p;q;}\")\ncat
<< EOF > /htpc/bazarr/config/config.ini\n[sonarr]\napikey = ${SONARR_API_KEY}\nfull_update
= Daily\nip = sonarr\nonly_monitored = False\nbase_url = /sonarr\nssl =
False\nport = 8989\n\n[radarr]\napikey = ${RADARR_API_KEY}\nfull_update
= Daily\nip = radarr\nonly_monitored = False\nbase_url = /radarr\nssl =
False\nport = 7878\n\n[general]\nmovie_default_hi = False\nmovie_default_language
= []\nip = 0.0.0.0\nuse_scenename = True\nuse_postprocessing = False\nenabled_providers
= subscene,tvsubtitles\nauto_update = True\nport = 6767\nuse_radarr = True\nbase_url
= /bazarr/\npage_size = 25\nminimum_score_movie = 70\nbranch = master\nsingle_language
= False\nuse_sonarr = True\nserie_default_hi = False\npath_mappings_movie
= [['/movies', '/movies'], ['', ''], ['', ''], ['', ''], ['', '']]\nserie_default_enabled
= False\nmovie_default_enabled = False\nserie_default_language = []\npath_mappings
= [['/tv', '/tv'], ['', ''], ['', ''], ['', ''], ['', '']]\npostprocessing_cmd
= \nminimum_score = 90\ndebug = False\nuse_embedded_subs = True\nadaptive_searching
= False\nEOF\n"
image: busybox
name: config
volumeMounts:
- mountPath: /htpc
name: htpc-home
securityContext:
fsGroup: 1000
volumes:
- hostPath:
path: /opt/htpc
type: DirectoryOrCreate
name: htpc-home
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: htpc
run: emby
name: emby
namespace: htpc
spec:
replicas: 1
selector:
matchLabels:
app: htpc
run: emby
template:
metadata:
labels:
app: htpc
run: emby
spec:
containers:
- env:
- name: TZ
value: Pacific/Auckland
- name: UID
value: "1000"
- name: GID
value: "1000"
image: emby/embyserver_arm32v7:latest
name: emby
ports:
- containerPort: 8096
name: webui
protocol: TCP
- containerPort: 8920
name: webui-ssl
protocol: TCP
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: emby
- mountPath: /tv
name: htpc-home
subPath: media/tv
- mountPath: /movies
name: htpc-home
subPath: media/movies
securityContext:
fsGroup: 1000
volumes:
- hostPath:
path: /opt/htpc
type: DirectoryOrCreate
name: htpc-home
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: htpc
run: jackett
name: jackett
namespace: htpc
spec:
replicas: 1
selector:
matchLabels:
app: htpc
run: jackett
template:
metadata:
labels:
app: htpc
run: jackett
spec:
containers:
- env:
- name: TZ
value: Pacific/Auckland
- name: PUID
value: "1000"
- name: PGID
value: "1000"
image: linuxserver/jackett:arm32v6-latest
name: jackett
ports:
- containerPort: 9117
name: webui
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: jackett
- mountPath: /downloads
name: htpc-home
subPath: downloads
initContainers:
- args:
- 'echo start; [[ ! -f /config/Jackett/ServerConfig.json ]] && mkdir -p /config/Jackett/
&& echo ''{ "BasePathOverride": "/jackett"}'' > /config/Jackett/ServerConfig.json;
echo end;'
command:
- sh
- -c
image: busybox
name: config
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: jackett
securityContext:
fsGroup: 1000
volumes:
- hostPath:
path: /opt/htpc
type: DirectoryOrCreate
name: htpc-home
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: htpc
run: radarr
name: radarr
namespace: htpc
spec:
replicas: 1
selector:
matchLabels:
app: htpc
run: radarr
template:
metadata:
labels:
app: htpc
run: radarr
spec:
containers:
- env:
- name: TZ
value: Pacific/Auckland
- name: PUID
value: "1000"
- name: PGID
value: "1000"
image: linuxserver/radarr:arm32v6-latest
livenessProbe:
exec:
command:
- /bin/sh
- -c
- curl "http://localhost:7878/radarr/api/health?ApiKey=$(sed -ne '/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}'
</config/config.xml)"
initialDelaySeconds: 30
periodSeconds: 10
name: radarr
ports:
- containerPort: 7878
name: webui
readinessProbe:
exec:
command:
- /bin/sh
- -c
- curl "http://localhost:7878/radarr/api/system/status?ApiKey=$(sed -ne
'/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}' </config/config.xml)"
initialDelaySeconds: 30
periodSeconds: 10
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: radarr
- mountPath: /movies
name: htpc-home
subPath: media/movies
- mountPath: /downloads
name: htpc-home
subPath: downloads
initContainers:
- command:
- sh
- -c
- chown -R 1000:1000 /config && chown -R 1000:1000 /movies
image: busybox
name: chown
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: radarr
- mountPath: /movies
name: htpc-home
subPath: media/movies
- args:
- echo start;[[ ! -f /config/config.xml ]] && echo '<Config><UrlBase>/radarr</UrlBase></Config>'>
/config/config.xml;echo end;
command:
- sh
- -c
image: busybox
name: config
securityContext:
runAsGroup: 1000
runAsUser: 1000
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: radarr
securityContext:
fsGroup: 1000
volumes:
- hostPath:
path: /opt/htpc
type: DirectoryOrCreate
name: htpc-home
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: htpc
run: sonarr
name: sonarr
namespace: htpc
spec:
replicas: 1
selector:
matchLabels:
app: htpc
run: sonarr
template:
metadata:
labels:
app: htpc
run: sonarr
spec:
containers:
- env:
- name: TZ
value: Pacific/Auckland
- name: PUID
value: "1000"
- name: PGID
value: "1000"
image: linuxserver/sonarr:arm32v6-latest
livenessProbe:
exec:
command:
- /bin/sh
- -c
- curl "http://localhost:8989/sonarr/api/health?ApiKey=$(sed -ne '/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}'
</config/config.xml)"
initialDelaySeconds: 30
periodSeconds: 10
name: sonarr
ports:
- containerPort: 8989
name: webui
readinessProbe:
exec:
command:
- /bin/sh
- -c
- curl "http://localhost:8989/sonarr/api/system/status?ApiKey=$(sed -ne
'/ApiKey/{s/.*<ApiKey>\(.*\)<\/ApiKey>.*/\1/p;q;}' </config/config.xml)"
initialDelaySeconds: 30
periodSeconds: 10
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: sonarr
- mountPath: /tv
name: htpc-home
subPath: media/tv
- mountPath: /downloads
name: htpc-home
subPath: downloads
initContainers:
- command:
- sh
- -c
- chown -R 1000:1000 /config && chown -R 1000:1000 /tv
image: busybox
name: chown
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: sonarr
- mountPath: /tv
name: htpc-home
subPath: media/tv
- args:
- echo start;[[ ! -f /config/config.xml ]] && echo '<Config><UrlBase>/sonarr</UrlBase></Config>'>
/config/config.xml;echo end;
command:
- sh
- -c
image: busybox
name: config
securityContext:
runAsGroup: 1000
runAsUser: 1000
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: sonarr
securityContext:
fsGroup: 1000
volumes:
- hostPath:
path: /opt/htpc
type: DirectoryOrCreate
name: htpc-home
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: htpc
run: transmission
name: transmission
namespace: htpc
spec:
replicas: 1
selector:
matchLabels:
app: htpc
run: transmission
template:
metadata:
labels:
app: htpc
run: transmission
spec:
containers:
- env:
- name: TZ
value: Pacific/Auckland
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: WHITELIST
value: ""
- name: HOST_WHITELIST
value: ""
image: linuxserver/transmission:arm32v6-latest
name: transmission
ports:
- containerPort: 9091
name: webui
protocol: TCP
- containerPort: 51413
name: torrent-tcp
protocol: TCP
- containerPort: 51413
name: torrent-udp
protocol: UDP
resources: {}
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: transmission
- mountPath: /downloads
name: htpc-home
subPath: downloads
- mountPath: /watch
name: htpc-home
subPath: watch
initContainers:
- command:
- sh
- -c
- chown -R 1000:1000 /config
image: busybox
name: chown
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: transmission
- mountPath: /downloads
name: htpc-home
subPath: downloads
- mountPath: /watch
name: htpc-home
subPath: watch
securityContext:
fsGroup: 1000
volumes:
- hostPath:
path: /opt/htpc
type: DirectoryOrCreate
name: htpc-home
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
labels:
app: htpc
name: htpc
namespace: htpc
spec:
entryPoints: []
routes:
- kind: Rule
match: PathPrefix(`/`)
middlewares: []
priority: 0
services:
- kind: Service
name: emby
namespace: htpc
port: 8096
- kind: Rule
match: PathPrefix(`/jackett`)
middlewares: []
priority: 0
services:
- kind: Service
name: jackett
namespace: htpc
port: 9117
- kind: Rule
match: PathPrefix(`/sonarr`)
middlewares: []
priority: 0
services:
- kind: Service
name: sonarr
namespace: htpc
port: 8989
- kind: Rule
match: PathPrefix(`/radarr`)
middlewares: []
priority: 0
services:
- kind: Service
name: radarr
namespace: htpc
port: 7878
- kind: Rule
match: PathPrefix(`/bazarr`)
middlewares: []
priority: 0
services:
- kind: Service
name: bazarr
namespace: htpc
port: 6767
- kind: Rule
match: PathPrefix(`/transmission`)
middlewares: []
priority: 0
services:
- kind: Service
name: transmission
namespace: htpc
port: 9091