-
Notifications
You must be signed in to change notification settings - Fork 0
/
sonarr.yaml
executable file
·90 lines (88 loc) · 2.04 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
90
apiVersion: apps/v1
kind: Deployment
metadata:
name: sonarr
labels:
app: sonarr
spec:
replicas: 1
selector:
matchLabels:
app: sonarr
strategy:
type: Recreate
template:
metadata:
labels:
app: sonarr
spec:
containers:
- name: sonarr
resources:
limits:
cpu: "100m"
image: linuxserver/sonarr
ports:
- containerPort: 8989
env:
- name: PGID
value: "1000"
- name: PUID
value: "1000"
- name: TZ
value: "America/Toronto"
volumeMounts:
- mountPath: /mnt
name: mnt
- mountPath: /etc/localtime
name: localtime
- mountPath: /config
name: config
volumes:
- name: localtime
hostPath:
path: /etc/localtime
- name: mnt
persistentVolumeClaim:
claimName: cephfs-pvc
- name: config
persistentVolumeClaim:
claimName: sonarr-config
---
apiVersion: v1
kind: Service
metadata:
name: sonarr
labels:
app: sonarr
spec:
type: ClusterIP
ports:
- port: 8989
protocol: TCP
selector:
app: sonarr
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: sonarr-ingress
annotations:
kubernetes.io/ingress.class: nginx-prod
nginx.ingress.kubernetes.io/auth-url: "https://oauth2.jamiechapmanbrn.com/oauth2/auth"
nginx.ingress.kubernetes.io/auth-signin: "https://oauth2.jamiechapmanbrn.com/oauth2/start?rd=https://sonarr.jamiechapmanbrn.com"
certmanager.k8s.io/cluster-issuer: letsencrypt-prod
kubernetes.io/tls-acme: “true”
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
spec:
rules:
- host: sonarr.jamiechapmanbrn.com
http:
paths:
- backend:
serviceName: sonarr
servicePort: 8989
tls:
- hosts:
- sonarr.jamiechapmanbrn.com
secretName: sonarr.jamiechapmanbrn.com.tls