jellyfin gpu passthrough

This commit is contained in:
2025-06-07 00:12:42 -04:00
parent 638e381aa5
commit ff051389dd
2 changed files with 14 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: jellyfin-config
namespace: media
data:
NVIDIA_VISIBLE_DEVICES: all
NVIDIA_DRIVER_CAPABILITIES: all

View File

@@ -16,6 +16,7 @@ spec:
- name: jellyfin
image: lscr.io/linuxserver/jellyfin:latest
imagePullPolicy: Always
runtimeClassName: nvidia
securityContext:
privileged: true
ports:
@@ -30,6 +31,11 @@ spec:
subPath: media
- name: dev-dri
mountPath: /dev/dri
env:
- name: NVIDIA_VISIBLE_DEVICES
value: all
- name: NVIDIA_DRIVER_CAPABILITIES
value: all
volumes:
- name: config
persistentVolumeClaim:
@@ -40,5 +46,3 @@ spec:
- name: dev-dri
hostPath:
path: /dev/dri