63 lines
1.2 KiB
YAML
63 lines
1.2 KiB
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: jellyfin
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: jellyfin
|
|
namespace: jellyfin
|
|
spec:
|
|
replicas: 0
|
|
selector:
|
|
matchLabels:
|
|
app: jellyfin
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: jellyfin
|
|
spec:
|
|
containers:
|
|
- image: jellyfin/jellyfin:latest
|
|
imagePullPolicy: IfNotPresent
|
|
env:
|
|
- name: JELLYFIN_PublishedServerUrl
|
|
value: "https://jellyfin.tryton.geeraert.eu"
|
|
name: jellyfin
|
|
ports:
|
|
- containerPort: 8096
|
|
name: jellyfin-port
|
|
volumeMounts:
|
|
- name: jellyfin-config
|
|
mountPath: /config
|
|
- name: jellyfin-cache
|
|
mountPath: /cache
|
|
- name: servarr-data
|
|
mountPath: /data
|
|
|
|
|
|
volumes:
|
|
- name: jellyfin-config
|
|
persistentVolumeClaim:
|
|
claimName: jellyfin-config
|
|
- name: jellyfin-cache
|
|
persistentVolumeClaim:
|
|
claimName: jellyfin-cache
|
|
- name: servarr-data
|
|
hostPath:
|
|
path: /data
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: jellyfin
|
|
namespace: jellyfin
|
|
spec:
|
|
ports:
|
|
- port: 8096
|
|
targetPort: jellyfin-port
|
|
protocol: TCP
|
|
selector:
|
|
app: jellyfin
|