1
0
Fork 0

enable transcode for jellyfin

This commit is contained in:
Massaki Archambault 2023-06-19 18:15:39 -04:00
parent 7a170337a1
commit 637be75029
1 changed files with 38 additions and 4 deletions

View File

@ -16,13 +16,26 @@ spec:
labels: labels:
app.kubernetes.io/name: jellyfin app.kubernetes.io/name: jellyfin
spec: spec:
securityContext: # securityContext:
runAsUser: 33 # runAsUser: 33
runAsGroup: 33 # runAsGroup: 33
fsGroup: 33 # fsGroup: 33
affinity:
nodeAffinity:
# TODO: eviction policy
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
# we require to be scheduled on a raspberry pi for hardware transcoding to work
- key: kubernetes.io/arch
operator: In
values:
- arm64
containers: containers:
- image: jellyfin/jellyfin - image: jellyfin/jellyfin
name: jellyfin name: jellyfin
securityContext:
privileged: true # required for hardware transcode
env: env:
- name: JELLYFIN_PublishedServerUrl - name: JELLYFIN_PublishedServerUrl
value: ${JELLYFIN_EXTERNAL_URL} value: ${JELLYFIN_EXTERNAL_URL}
@ -45,6 +58,15 @@ spec:
mountPath: /config mountPath: /config
- name: jellyfin-cache-pvc - name: jellyfin-cache-pvc
mountPath: /cache mountPath: /cache
- name: jellyfin-transcode
mountPath: /config/transcodes
# below mounts are for hardware transcode
- mountPath: /dev/video10
name: device-video10
- mountPath: /dev/video11
name: device-video11
- mountPath: /dev/video12
name: device-video12
volumes: volumes:
- name: jellyfin-config-pvc - name: jellyfin-config-pvc
persistentVolumeClaim: persistentVolumeClaim:
@ -52,6 +74,18 @@ spec:
- name: jellyfin-cache-pvc - name: jellyfin-cache-pvc
persistentVolumeClaim: persistentVolumeClaim:
claimName: jellyfin-cache-pvc claimName: jellyfin-cache-pvc
- name: jellyfin-transcode
emptyDir:
sizeLimit: 80Gi
- name: device-video10 #Only needed if you want to use your Raspberry Pi V4L2 video encoding.
hostPath:
path: /dev/video10
- name: device-video11 #Only needed if you want to use your Raspberry Pi V4L2 video encoding.
hostPath:
path: /dev/video11
- name: device-video12 #Only needed if you want to use your Raspberry Pi V4L2 video encoding.
hostPath:
path: /dev/video12
--- ---
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim