Add Jellyfin deployment, service, and PVC configurations

This commit is contained in:
2025-10-15 04:56:59 +05:30
parent 1271d02ec3
commit 1942cdd4e2
3 changed files with 82 additions and 0 deletions

View 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

View 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

View 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