From 515f034b798f3a88a6bc454ea5ba17a77eb1ba80 Mon Sep 17 00:00:00 2001 From: SmokyZone Date: Sun, 25 Oct 2026 10:20:11 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20"Revert=20"Jellyfin=20ohne=20privilege?= =?UTF-8?q?d:=20GPU=20=C3=BCber=20Intel=20Device=20Plugin=20(gpu.intel.com?= =?UTF-8?q?/i915)""?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit c7e8931e33570f6640dfa2eb3ecbdfd034d6f0fc. --- templates/apps.yaml | 24 ++++++++---------------- values.yaml | 5 ++--- 2 files changed, 10 insertions(+), 19 deletions(-) diff --git a/templates/apps.yaml b/templates/apps.yaml index 304cf4d..4682a4c 100644 --- a/templates/apps.yaml +++ b/templates/apps.yaml @@ -88,10 +88,6 @@ spec: - name: {{ $name }} image: {{ $app.image }} imagePullPolicy: IfNotPresent - {{- if $app.gpu }} - securityContext: - privileged: true - {{- end }} ports: - name: http containerPort: {{ $app.port }} @@ -129,15 +125,17 @@ spec: - name: media mountPath: {{ $root.Values.media.mountPath }} {{- end }} - {{- if $app.gpu }} - - name: dri - mountPath: /dev/dri - {{- end }} - {{- with $app.resources }} + {{- /* gpu: request the iGPU from the Intel GPU device plugin (app intel-gpu-plugin + in apps-in-apps). It injects /dev/dri into the container, no privileged needed. */}} + {{- $res := deepCopy ($app.resources | default dict) }} + {{- if $app.gpu }} + {{- $_ := set $res "limits" (merge (dict "gpu.intel.com/i915" 1) (get $res "limits" | default dict)) }} + {{- end }} + {{- with $res }} resources: {{- toYaml . | nindent 12 }} {{- end }} - {{- if or $app.configPath $app.media $app.gpu }} + {{- if or $app.configPath $app.media }} volumes: {{- if $app.configPath }} - name: config @@ -150,12 +148,6 @@ spec: path: {{ $root.Values.media.hostPath }} type: DirectoryOrCreate {{- end }} - {{- if $app.gpu }} - - name: dri - hostPath: - path: /dev/dri - type: Directory - {{- end }} {{- end }} --- apiVersion: v1 diff --git a/values.yaml b/values.yaml index c56e491..a40dcb3 100644 --- a/values.yaml +++ b/values.yaml @@ -70,9 +70,8 @@ apps: configSize: 20Gi media: true ingress: true - # Mounts /dev/dri for Intel QuickSync (UHD 630). Needs a privileged container, - # because the device cgroup blocks /dev/dri for unprivileged pods without a GPU - # device plugin. + # Intel QuickSync (UHD 630): requests gpu.intel.com/i915 from the Intel GPU device + # plugin (apps-in-apps: intel-gpu-plugin), which injects /dev/dri. Not privileged. gpu: true ingressAnnotations: nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"