-
Notifications
You must be signed in to change notification settings - Fork 0
/
jellyfin.yaml
172 lines (166 loc) · 3.46 KB
/
jellyfin.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
## Ingress
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: jellyfin-ingress
namespace: mediaserver
spec:
rules:
- host: streaming.farhoodliquor.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: jellyfin
port:
number: 8096
tls:
- hosts:
- streaming.farhoodliquor.com
secretName: farhoodliquor-com-cert-letsencrypt-prod
## Service
---
apiVersion: v1
kind: Service
metadata:
name: jellyfin
namespace: mediaserver
labels:
app.kubernetes.io/name: jellyfin
spec:
ports:
- name: http-8096
port: 8096
targetPort: 8096
selector:
app.kubernetes.io/name: jellyfin
type: LoadBalancer
externalTrafficPolicy: Local
#clusterIP: None
## StatefulSet
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: jellyfin
namespace: mediaserver
spec:
selector:
matchLabels:
app.kubernetes.io/name: jellyfin
serviceName: "jellyfin"
replicas: 1
minReadySeconds: 10
template:
metadata:
labels:
app.kubernetes.io/name: jellyfin
spec:
containers:
- name: jellyfin
#image: docker.io/bitwrk/jellyfin-rffmpeg:latest # for distrubed transcoding
image: docker.io/jellyfin/jellyfin:latest # official upstream
ports:
- containerPort: 8096
name: http-8096
env:
- name: TZ
value: America/Detroit
- name: JELLYFIN_DATA_DIR
value: /config/data
- name: JELLYFIN_CONFIG_DIR
value: /config
- name: JELLYFIN_LOG_DIR
value: /config/log
- name: JELLYFIN_CACHE_DIR
value: /config/cache
volumeMounts:
- name: jellyfin-config
mountPath: "/config"
- name: jellyfin-content
mountPath: "/media"
resources:
requests:
memory: "2Gi"
cpu: "2000m"
limits:
gpu.intel.com/i915: 1
volumes:
- name: jellyfin-config
persistentVolumeClaim:
claimName: jellyfin-config
nodeSelector:
hevc10: "true"
volumeClaimTemplates:
- metadata:
name: jellyfin-content
spec:
volumeName: jellyfin-content
accessModes: ["ReadWriteMany"]
storageClassName: "nfs"
resources:
requests:
storage: 1Gi
## Volumes
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: jellyfin-config
namespace: mediaserver
labels:
name: jellyfin-config
annotations:
kustomize.toolkit.fluxcd.io/prune: disabled
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 8Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: jellyfin-transcode
namespace: mediaserver
labels:
name: jellyfin-transcode
annotations:
kustomize.toolkit.fluxcd.io/prune: enabled
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 128Gi
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: jellyfin-content
labels:
name: jellyfin-content
annotations:
kustomize.toolkit.fluxcd.io/prune: disabled
spec:
capacity:
storage: 1Gi
volumeMode: Filesystem
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
storageClassName: nfs
mountOptions:
- soft
- nfsvers=4.1
- rsize=32768
- wsize=32768
nfs:
path: /mnt/pool0/media/
server: truenas.farhoodliquor.dmz