From 10d4d678438103589fe74101154b875d1071ed56 Mon Sep 17 00:00:00 2001 From: aggarwalakshun Date: Sun, 6 Jul 2025 11:54:05 +0530 Subject: [PATCH] use intel-gpu-operator --- cluster/apps/jellyfin/jellyfin-pvc.yml | 13 ++++++++++ cluster/apps/jellyfin/jellyfin.yml | 33 ++++++++++---------------- 2 files changed, 26 insertions(+), 20 deletions(-) create mode 100644 cluster/apps/jellyfin/jellyfin-pvc.yml diff --git a/cluster/apps/jellyfin/jellyfin-pvc.yml b/cluster/apps/jellyfin/jellyfin-pvc.yml new file mode 100644 index 0000000..b9c70ea --- /dev/null +++ b/cluster/apps/jellyfin/jellyfin-pvc.yml @@ -0,0 +1,13 @@ +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: longhorn-jellyfin + namespace: default +spec: + accessModes: + - ReadWriteMany + storageClassName: longhorn + resources: + requests: + storage: 25Gi diff --git a/cluster/apps/jellyfin/jellyfin.yml b/cluster/apps/jellyfin/jellyfin.yml index 2c4b21c..1567024 100644 --- a/cluster/apps/jellyfin/jellyfin.yml +++ b/cluster/apps/jellyfin/jellyfin.yml @@ -14,17 +14,6 @@ spec: labels: app: jellyfin spec: - securityContext: - runAsGroup: 1000 - runAsUser: 1000 - supplementalGroups: - - 128 - - 226 - - 106 - - 44 - - 104 - nodeSelector: - type: jellyfin containers: - name: jellyfin image: jellyfin/jellyfin:10.10.7 @@ -39,23 +28,27 @@ spec: mountPath: /config - name: cache mountPath: /cache - - name: card - mountPath: /dev/dri/renderD128 + - name: i915 + mountPath: /dev/dri securityContext: privileged: true + resources: + requests: + gpu.intel.com/i915: "1" + limits: + gpu.intel.com/i915: "1" volumes: - name: config - hostPath: - path: /home/akshun/jellyfin/ - type: Directory + persistentVolumeClaim: + claimName: longhorn-jellyfin - name: cache hostPath: - path: /home/akshun/jellyfin/cache + path: /tmp/ type: Directory - name: media nfs: server: 10.0.0.123 path: /merge - - name: card - persistentVolumeClaim: - claimName: jellyfin-intel-pvc + - name: i915 + hostPath: + path: /dev/dri