feat: add jellyfin deployment, service, and persistent volume claims
This commit is contained in:
27
cluster/apps/jellyfin/jellyfin-pvc.yml
Normal file
27
cluster/apps/jellyfin/jellyfin-pvc.yml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: longhorn-jellyfin-cache
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 20Gi
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: longhorn-jellyfin-config
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 20Gi
|
||||||
16
cluster/apps/jellyfin/jellyfin-svc.yml
Normal file
16
cluster/apps/jellyfin/jellyfin-svc.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: jellyfin-service
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
type: NodePort
|
||||||
|
selector:
|
||||||
|
app: jellyfin
|
||||||
|
ports:
|
||||||
|
- port: 8096
|
||||||
|
targetPort: 8096
|
||||||
|
nodePort: 8096
|
||||||
|
protocol: TCP
|
||||||
|
|
||||||
57
cluster/apps/jellyfin/jellyfin.yml
Normal file
57
cluster/apps/jellyfin/jellyfin.yml
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: jellyfin
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: jellyfin
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
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
|
||||||
|
ports:
|
||||||
|
- containerPort: 8096
|
||||||
|
volumeMounts:
|
||||||
|
- name: media
|
||||||
|
mountPath: /media
|
||||||
|
- name: config
|
||||||
|
mountPath: /config
|
||||||
|
- name: cache
|
||||||
|
mountPath: /cache
|
||||||
|
- name: card
|
||||||
|
mountPath: /dev/dri/renderD128
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- name: config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: longhorn-jellyfin-config
|
||||||
|
- name: cache
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: longhorn-jellyfin-cache
|
||||||
|
- name: media
|
||||||
|
nfs:
|
||||||
|
server: 10.0.0.123
|
||||||
|
path: /merge
|
||||||
|
- name: card
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: jellyfin-intel-pvc
|
||||||
Reference in New Issue
Block a user