mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 04:59:54 +00:00
jellyfin gpu passthrough
This commit is contained in:
8
media/jellyfin/config.yaml
Normal file
8
media/jellyfin/config.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: jellyfin-config
|
||||
namespace: media
|
||||
data:
|
||||
NVIDIA_VISIBLE_DEVICES: all
|
||||
NVIDIA_DRIVER_CAPABILITIES: all
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user