-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsonarr.yaml
89 lines (89 loc) · 1.75 KB
/
sonarr.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: sonarr
namespace: plex
spec:
strategy:
type: Recreate
selector:
matchLabels:
app: sonarr
replicas: 1
template:
metadata:
labels:
app: sonarr
annotations:
backup.velero.io/backup-volumes-excludes: plex,seedbox
spec:
containers:
- name: sonarr
image: lscr.io/linuxserver/sonarr:latest
ports:
- containerPort: 8989
name: http-web-svc
env:
- name: TZ
value: America/New_York
- name: PUID
value: "1000"
- name: PGID
value: "1000"
volumeMounts:
- mountPath: "/plex"
name: plex
- mountPath: "/seedbox"
name: seedbox
- mountPath: "/config"
name: config
resources:
requests:
memory: "0"
limits:
memory: "2Gi"
volumes:
- name: plex
persistentVolumeClaim:
claimName: plex-pvc
- name: seedbox
persistentVolumeClaim:
claimName: seedbox-pvc
- name: config
persistentVolumeClaim:
claimName: sonarr-pvc
---
apiVersion: v1
kind: Service
metadata:
name: sonarr-service
namespace: plex
spec:
selector:
app: sonarr
type: ClusterIP
ports:
- name: sonarr-web-port
protocol: TCP
port: 8989
targetPort: http-web-svc
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: sonarr
namespace: plex
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: Host(`sonarr.lan.jibby.org`)
services:
- kind: Service
name: sonarr-service
port: 8989
middlewares:
- name: lanonly
namespace: kube-system