86 lines
2.1 KiB
YAML
86 lines
2.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: jellyfin-deployment
|
|
labels:
|
|
app: jellyfin
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: jellyfin
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: jellyfin
|
|
spec:
|
|
containers:
|
|
- name: jellyfin
|
|
image: lscr.io/linuxserver/jellyfin:latest
|
|
ports:
|
|
- name: http
|
|
containerPort: 8096
|
|
- name: https
|
|
containerPort: 8920
|
|
env:
|
|
- name: TZ
|
|
value: Europe/Berlin
|
|
- name: JELLYFIN_PublishedServerUrl
|
|
value: https://jellyfin.tap-tap.win
|
|
volumeMounts:
|
|
- name: jellyfin-config
|
|
mountPath: /config
|
|
- name: jellyfin-media
|
|
mountPath: /media/family
|
|
readOnly: true
|
|
- name: jellyfin-music
|
|
mountPath: /media/music
|
|
readOnly: true
|
|
volumes:
|
|
- name: jellyfin-config
|
|
hostPath:
|
|
path: /root/kubernetes/jellyfin/data/config
|
|
- name: jellyfin-media
|
|
hostPath:
|
|
path: "/root/kubernetes/nextcloud/data/mount/html/data/TapTap/files/Media/Media Family"
|
|
- name: jellyfin-music
|
|
hostPath:
|
|
path: "/root/kubernetes/nextcloud/data/mount/html/data/TapTap/files/Media/Music"
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: jellyfin-service
|
|
spec:
|
|
selector:
|
|
app: jellyfin
|
|
ports:
|
|
- name: http
|
|
protocol: TCP
|
|
port: 80
|
|
targetPort: 8096
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: jellyfin-ingress
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: "letsencrypt-issuer"
|
|
spec:
|
|
ingressClassName: "traefik"
|
|
tls:
|
|
- hosts:
|
|
- jellyfin.tap-tap.win
|
|
secretName: jellyfin-tls-secret
|
|
rules:
|
|
- host: jellyfin.tap-tap.win
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: jellyfin-service
|
|
port:
|
|
number: 80
|