Revert "Jellyfin ohne privileged: GPU über Intel Device Plugin (gpu.intel.com/i915)"
This reverts commit 63a2a4bc62.
This commit is contained in:
+14
-6
@@ -88,6 +88,10 @@ 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 }}
|
||||||
@@ -125,17 +129,15 @@ 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 }}
|
||||||
{{- $_ := set $res "limits" (merge (dict "gpu.intel.com/i915" 1) (get $res "limits" | default dict)) }}
|
- name: dri
|
||||||
|
mountPath: /dev/dri
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with $res }}
|
{{- with $app.resources }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if or $app.configPath $app.media }}
|
{{- if or $app.configPath $app.media $app.gpu }}
|
||||||
volumes:
|
volumes:
|
||||||
{{- if $app.configPath }}
|
{{- if $app.configPath }}
|
||||||
- name: config
|
- name: config
|
||||||
@@ -148,6 +150,12 @@ 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
|
||||||
|
|||||||
+3
-2
@@ -70,8 +70,9 @@ apps:
|
|||||||
configSize: 20Gi
|
configSize: 20Gi
|
||||||
media: true
|
media: true
|
||||||
ingress: true
|
ingress: true
|
||||||
# Intel QuickSync (UHD 630): requests gpu.intel.com/i915 from the Intel GPU device
|
# Mounts /dev/dri for Intel QuickSync (UHD 630). Needs a privileged container,
|
||||||
# plugin (apps-in-apps: intel-gpu-plugin), which injects /dev/dri. Not privileged.
|
# because the device cgroup blocks /dev/dri for unprivileged pods without a GPU
|
||||||
|
# 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