mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 13:09:53 +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
|
- name: jellyfin
|
||||||
image: lscr.io/linuxserver/jellyfin:latest
|
image: lscr.io/linuxserver/jellyfin:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
runtimeClassName: nvidia
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
ports:
|
ports:
|
||||||
@@ -30,6 +31,11 @@ spec:
|
|||||||
subPath: media
|
subPath: media
|
||||||
- name: dev-dri
|
- name: dev-dri
|
||||||
mountPath: /dev/dri
|
mountPath: /dev/dri
|
||||||
|
env:
|
||||||
|
- name: NVIDIA_VISIBLE_DEVICES
|
||||||
|
value: all
|
||||||
|
- name: NVIDIA_DRIVER_CAPABILITIES
|
||||||
|
value: all
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
@@ -40,5 +46,3 @@ spec:
|
|||||||
- name: dev-dri
|
- name: dev-dri
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /dev/dri
|
path: /dev/dri
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user