use intel-gpu-operator
This commit is contained in:
13
cluster/apps/jellyfin/jellyfin-pvc.yml
Normal file
13
cluster/apps/jellyfin/jellyfin-pvc.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: longhorn-jellyfin
|
||||
namespace: default
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 25Gi
|
||||
@@ -14,17 +14,6 @@ spec:
|
||||
labels:
|
||||
app: jellyfin
|
||||
spec:
|
||||
securityContext:
|
||||
runAsGroup: 1000
|
||||
runAsUser: 1000
|
||||
supplementalGroups:
|
||||
- 128
|
||||
- 226
|
||||
- 106
|
||||
- 44
|
||||
- 104
|
||||
nodeSelector:
|
||||
type: jellyfin
|
||||
containers:
|
||||
- name: jellyfin
|
||||
image: jellyfin/jellyfin:10.10.7
|
||||
@@ -39,23 +28,27 @@ spec:
|
||||
mountPath: /config
|
||||
- name: cache
|
||||
mountPath: /cache
|
||||
- name: card
|
||||
mountPath: /dev/dri/renderD128
|
||||
- name: i915
|
||||
mountPath: /dev/dri
|
||||
securityContext:
|
||||
privileged: true
|
||||
resources:
|
||||
requests:
|
||||
gpu.intel.com/i915: "1"
|
||||
limits:
|
||||
gpu.intel.com/i915: "1"
|
||||
volumes:
|
||||
- name: config
|
||||
hostPath:
|
||||
path: /home/akshun/jellyfin/
|
||||
type: Directory
|
||||
persistentVolumeClaim:
|
||||
claimName: longhorn-jellyfin
|
||||
- name: cache
|
||||
hostPath:
|
||||
path: /home/akshun/jellyfin/cache
|
||||
path: /tmp/
|
||||
type: Directory
|
||||
- name: media
|
||||
nfs:
|
||||
server: 10.0.0.123
|
||||
path: /merge
|
||||
- name: card
|
||||
persistentVolumeClaim:
|
||||
claimName: jellyfin-intel-pvc
|
||||
- name: i915
|
||||
hostPath:
|
||||
path: /dev/dri
|
||||
|
||||
Reference in New Issue
Block a user