Files
homelab/kubernetes/app/jellyfin/deployment.yaml

74 lines
1.8 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: jellyfin
namespace: jellyfin
labels:
app: jellyfin
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: jellyfin
template:
metadata:
labels:
app: jellyfin
spec:
containers:
- name: jellyfin
image: jellyfin/jellyfin:10.11.6
env:
- name: JELLYFIN_PublishedServerUrl
value: https://${JELLYFIN_HOST}
ports:
- containerPort: 8096
name: http
protocol: TCP
- containerPort: 7359
name: discovery
protocol: UDP
hostPort: 7359
- containerPort: 1900
name: dlna
protocol: UDP
hostPort: 1900
resources:
limits:
gpu.intel.com/i915: "1"
livenessProbe:
httpGet:
port: 8096
path: /health
initialDelaySeconds: 30
periodSeconds: 30
timeoutSeconds: 5
failureThreshold: 5
readinessProbe:
httpGet:
port: 8096
path: /health
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
volumeMounts:
- name: config
mountPath: /config
- name: cache
mountPath: /cache
- name: media
mountPath: /media
subPath: complete
volumes:
- name: config
persistentVolumeClaim:
claimName: jellyfin-config
- name: cache
persistentVolumeClaim:
claimName: jellyfin-cache
- name: media
persistentVolumeClaim:
claimName: jellyfin-media