Merge pull request #10 from aggarwalakshun/jellyfin
Add Jellyfin deployment, service, and PVC configurations
This commit is contained in:
14
clusters/default/media/jellyfin/jellyfin-pvc.yml
Normal file
14
clusters/default/media/jellyfin/jellyfin-pvc.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: jellyfin-longhorn
|
||||
namespace: media
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
volumeMode: Filesystem
|
||||
resources:
|
||||
requests:
|
||||
storage: 15Gi
|
||||
storageClassName: longhorn
|
||||
14
clusters/default/media/jellyfin/jellyfin-svc.yml
Normal file
14
clusters/default/media/jellyfin/jellyfin-svc.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: jellyfin-service
|
||||
namespace: media
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
selector:
|
||||
app: jellyfin
|
||||
ports:
|
||||
- port: 8096
|
||||
targetPort: 8096
|
||||
protocol: TCP
|
||||
54
clusters/default/media/jellyfin/jellyfin.yml
Normal file
54
clusters/default/media/jellyfin/jellyfin.yml
Normal file
@@ -0,0 +1,54 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: jellyfin
|
||||
namespace: media
|
||||
spec:
|
||||
strategy:
|
||||
type: Recreate
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: jellyfin
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: jellyfin
|
||||
spec:
|
||||
containers:
|
||||
- name: jellyfin
|
||||
image: jellyfin/jellyfin:10.10.7
|
||||
ports:
|
||||
- containerPort: 8096
|
||||
volumeMounts:
|
||||
- name: media
|
||||
mountPath: /media
|
||||
- name: config
|
||||
mountPath: /config
|
||||
- name: cache
|
||||
mountPath: /cache
|
||||
- name: i915
|
||||
mountPath: /dev/dri
|
||||
securityContext:
|
||||
privileged: true
|
||||
resources:
|
||||
requests:
|
||||
gpu.intel.com/i915: "1"
|
||||
limits:
|
||||
gpu.intel.com/i915: "1"
|
||||
volumes:
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: jellyfin-longhorn
|
||||
- name: cache
|
||||
hostPath:
|
||||
path: /tmp/
|
||||
type: Directory
|
||||
- name: media
|
||||
nfs:
|
||||
server: 10.0.0.123
|
||||
path: /merge
|
||||
- name: i915
|
||||
hostPath:
|
||||
path: /dev/dri
|
||||
Reference in New Issue
Block a user