Jellyfin ohne privileged: GPU über Intel Device Plugin (gpu.intel.com/i915)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-25 10:05:11 +01:00
co-authored by Claude Opus 5.5
parent d2c76c9ac8
commit 63a2a4bc62
2 changed files with 10 additions and 19 deletions
+6 -14
View File
@@ -88,10 +88,6 @@ spec:
- name: {{ $name }} - name: {{ $name }}
image: {{ $app.image }} image: {{ $app.image }}
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
{{- if $app.gpu }}
securityContext:
privileged: true
{{- end }}
ports: ports:
- name: http - name: http
containerPort: {{ $app.port }} containerPort: {{ $app.port }}
@@ -129,15 +125,17 @@ spec:
- name: media - name: media
mountPath: {{ $root.Values.media.mountPath }} mountPath: {{ $root.Values.media.mountPath }}
{{- end }} {{- end }}
{{- /* 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 }} {{- if $app.gpu }}
- name: dri {{- $_ := set $res "limits" (merge (dict "gpu.intel.com/i915" 1) (get $res "limits" | default dict)) }}
mountPath: /dev/dri
{{- end }} {{- end }}
{{- with $app.resources }} {{- with $res }}
resources: resources:
{{- toYaml . | nindent 12 }} {{- toYaml . | nindent 12 }}
{{- end }} {{- end }}
{{- if or $app.configPath $app.media $app.gpu }} {{- if or $app.configPath $app.media }}
volumes: volumes:
{{- if $app.configPath }} {{- if $app.configPath }}
- name: config - name: config
@@ -150,12 +148,6 @@ spec:
path: {{ $root.Values.media.hostPath }} path: {{ $root.Values.media.hostPath }}
type: DirectoryOrCreate type: DirectoryOrCreate
{{- end }} {{- end }}
{{- if $app.gpu }}
- name: dri
hostPath:
path: /dev/dri
type: Directory
{{- end }}
{{- end }} {{- end }}
--- ---
apiVersion: v1 apiVersion: v1
+2 -3
View File
@@ -70,9 +70,8 @@ apps:
configSize: 20Gi configSize: 20Gi
media: true media: true
ingress: true ingress: true
# Mounts /dev/dri for Intel QuickSync (UHD 630). Needs a privileged container, # Intel QuickSync (UHD 630): requests gpu.intel.com/i915 from the Intel GPU device
# because the device cgroup blocks /dev/dri for unprivileged pods without a GPU # plugin (apps-in-apps: intel-gpu-plugin), which injects /dev/dri. Not privileged.
# device plugin.
gpu: true gpu: true
ingressAnnotations: ingressAnnotations:
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600" nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"