add jellyfin

This commit is contained in:
Mans Ziesel 2024-10-30 16:05:42 +01:00
parent f9e07adc0a
commit 44d066dc01
5 changed files with 87 additions and 0 deletions

View File

@ -0,0 +1,49 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: jellyfin
namespace: jellyfin
labels:
app: jellyfin
spec:
replicas: 1
selector:
matchLabels:
app: jellyfin
template:
metadata:
labels:
app: jellyfin
annotations:
spec:
volumes:
- name: jellyfin-config
persistentVolumeClaim:
claimName: mediaserver-jellyfin-config-pvc
- name: plex-data
persistentVolumeClaim:
claimName: mediaserver-plex-data-pvc
containers:
- name: jellyfin
image: ghcr.io/hotio/jellyfin:latest@sha256:691de0ddf8b3f27c8520f34cc566e4a18090ea2ac36a9ace1eec7184b6e9baca
resources:
requests:
cpu: 1
memory: 512Mi
ports:
- name: web
containerPort: 8096
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: UMASK
value: "002"
- name: TZ
value: Europe/Amsterdam
volumeMounts:
- mountPath: /config
name: jellyfin-config
- mountPath: /data
name: plex-data

View File

@ -0,0 +1,12 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: mediaserver-ingressroute
spec:
routes:
- match: Host(`jellyfin.mziesel.nl`)
kind: Rule
services:
- name: mediaserver-jellyfin
port: web
tls: {}

View File

@ -0,0 +1,11 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: mediaserver-jellyfin-config-pvc
spec:
storageClassName: nfs-client
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi

View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: mediaserver-jellyfin
spec:
ports:
- name: web
port: 80
targetPort: web
selector:
app: jellyfin

View File

@ -31,3 +31,7 @@ resources:
- ./base/mediaserver-overseerr-ingress.yaml - ./base/mediaserver-overseerr-ingress.yaml
- ./base/mediaserver-overseerr-pvc.yaml - ./base/mediaserver-overseerr-pvc.yaml
- ./base/mediaserver-overseerr-svc.yaml - ./base/mediaserver-overseerr-svc.yaml
- ./base/mediaserver-jellyfin-deployment.yaml
- ./base/mediaserver-jellyfin-ingress.yaml
- ./base/mediaserver-jellyfin-pvc.yaml
- ./base/mediaserver-jellyfin-svc.yaml