k3s/services/jellyfin/jellyfin-deployment.yaml

51 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: jellyfin
annotations:
keel.sh/policy: "all"
keel.sh/match-tag: "true"
keel.sh/schedule: "0 3 * * *"
spec:
replicas: 1
selector:
matchLabels:
app: jellyfin
strategy:
type: Recreate
template:
metadata:
labels:
app: jellyfin
spec:
containers:
- env:
- name: PGID
value: "3000"
- name: PUID
value: "3000"
image: jellyfin/jellyfin:latest
name: jellyfin
ports:
- containerPort: 8096
protocol: TCP
name: web-ui
volumeMounts:
- mountPath: /config
name: jellyfin-config
- mountPath: /cache
name: jellyfin-cache
- mountPath: /media
name: yarr
restartPolicy: Always
volumes:
- name: jellyfin-config
persistentVolumeClaim:
claimName: jellyfin-config-pvc
- name: jellyfin-cache
persistentVolumeClaim:
claimName: jellyfin-cache-pvc
- name: yarr
nfs:
server: robin.home.nest
path: /yarr/media