Revert "Revert "Jellyfin ohne privileged: GPU über Intel Device Plugin (gpu.intel.com/i915)""
This reverts commit c7e8931e33.
This commit is contained in:
+6
-14
@@ -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
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user