jellyfin
Jellyfin - The Free Software Media System (Plex Alternative)
About this chart
Jellyfin
The Free Software Media System - A Plex alternative that puts you in control.
TL;DR
# Add Helm repository
helm repo add sb-charts https://scriptonbasestar-containers.github.io/sb-helm-charts
helm repo update
# Install chart with home server configuration
helm install jellyfin sb-charts/jellyfin \
-f https://raw.githubusercontent.com/scriptonbasestar-container/sb-helm-charts/master/charts/jellyfin/values-home-single.yaml
# Enable Intel QuickSync Video (QSV) hardware transcoding
helm install jellyfin sb-charts/jellyfin \
-f https://raw.githubusercontent.com/scriptonbasestar-container/sb-helm-charts/master/charts/jellyfin/values-home-single.yaml \
--set jellyfin.hardwareAcceleration.enabled=true \
--set jellyfin.hardwareAcceleration.type=intel-qsv
Introduction
This chart bootstraps a Jellyfin media server deployment on a Kubernetes cluster using the Helm package manager.
Key Features:
- ✅ Complete GPU Acceleration Support (Intel QSV, NVIDIA NVENC, AMD VAAPI)
- ✅ No External Dependencies (uses built-in SQLite database)
- ✅ Flexible Media Library Configuration (PVC, hostPath, or existing claims)
- ✅ Optimized for Home Servers (Raspberry Pi, Intel NUC, Mini PCs)
- ✅ Production-Ready with health probes and resource management
- ✅ Native Configuration (uses Jellyfin's built-in config files)
Why Jellyfin over Plex?
- 100% Free & Open Source - No paid tiers or feature restrictions
- No Telemetry - Your data stays on your server
- Community-Driven - No vendor lock-in
- GPU Transcoding - Free hardware acceleration (Plex charges for this)
Prerequisites
- Kubernetes 1.24+
- Helm 3.8+
- Persistent storage (PVC or hostPath)
Optional: GPU Hardware
For hardware-accelerated transcoding:
- Intel QuickSync Video (QSV): Intel CPU with integrated GPU (6th gen+)
- Most common in home servers (Intel NUC, Mini PCs)
- Recommended for home use
- NVIDIA NVENC: NVIDIA GPU with NVENC support
- Requires NVIDIA GPU Operator or device plugin
- Best performance but higher power consumption
- AMD VAAPI: AMD GPU with VA-API support
- Good performance with lower power usage
Installing the Chart
Home Server Quick Start (Recommended)
Perfect for Raspberry Pi 4, Intel NUC, or home NAS:
helm install jellyfin sb-charts/jellyfin \
-f https://raw.githubusercontent.com/scriptonbasestar-container/sb-helm-charts/master/charts/jellyfin/values-home-single.yaml
What you get:
- 2 CPU cores, 2Gi RAM
- 2Gi config storage, 5Gi transcoding cache
- Ready for Intel QSV hardware acceleration
With Intel QuickSync Video (QSV)
Enable hardware transcoding on Intel CPUs:
helm install jellyfin sb-charts/jellyfin \
-f https://raw.githubusercontent.com/scriptonbasestar-container/sb-helm-charts/master/charts/jellyfin/values-home-single.yaml \
--set jellyfin.hardwareAcceleration.enabled=true \
--set jellyfin.hardwareAcceleration.type=intel-qsv \
--set nodeSelector."intel\.feature\.node\.kubernetes\.io/gpu"=true
With NVIDIA GPU
helm install jellyfin sb-charts/jellyfin \
-f https://raw.githubusercontent.com/scriptonbasestar-container/sb-helm-charts/master/charts/jellyfin/values-home-single.yaml \
--set jellyfin.hardwareAcceleration.enabled=true \
--set jellyfin.hardwareAcceleration.type=nvidia-nvenc \
--set nodeSelector."nvidia\.com/gpu\.present"=true
With AMD VAAPI
helm install jellyfin sb-charts/jellyfin \
-f https://raw.githubusercontent.com/scriptonbasestar-container/sb-helm-charts/master/charts/jellyfin/values-home-single.yaml \
--set jellyfin.hardwareAcceleration.enabled=true \
--set jellyfin.hardwareAcceleration.type=amd-vaapi
Configuration
GPU Hardware Acceleration
Complete guide for enabling GPU transcoding.
Intel QuickSync Video (QSV)
Requirements:
- Intel CPU with integrated GPU (6th generation or newer)
/dev/dri/renderD128device accessible on node
Configuration:
# values.yaml
jellyfin:
hardwareAcceleration:
enabled: true
type: "intel-qsv"
intel:
renderDevice: "/dev/dri/renderD128"
# Node selector (if you have multiple nodes)
nodeSelector:
intel.feature.node.kubernetes.io/gpu: "true"
What the chart does automatically:
- ✅ Mounts
/dev/driinto the container - ✅ Adds supplementalGroups
44(video) and109(render) - ✅ Sets proper device permissions
Verify GPU access:
# Check GPU configuration
make -f make/ops/jellyfin.mk jellyfin-check-gpu
# Expected output:
# Hardware acceleration type: intel-qsv
# GPU enabled: Yes
# /dev/dri:
# drwxr-xr-x 2 root root 80 renderD128
NVIDIA NVENC
Requirements:
- NVIDIA GPU with NVENC support
- NVIDIA GPU Operator installed
- Or NVIDIA Device Plugin
Configuration:
# values.yaml
jellyfin:
hardwareAcceleration:
enabled: true
type: "nvidia-nvenc"
nvidia:
runtimeClassName: "nvidia"
nodeSelector:
nvidia.com/gpu.present: "true"
What the chart does automatically:
- ✅ Adds
nvidia.com/gpu: 1resource limit - ✅ Sets
runtimeClassName: nvidia
Verify GPU access:
make -f make/ops/jellyfin.mk jellyfin-check-gpu
# Should show nvidia-smi output
AMD VAAPI
Requirements:
- AMD GPU with VA-API support
/dev/dridevice accessible on node
Configuration:
# values.yaml
jellyfin:
hardwareAcceleration:
enabled: true
type: "amd-vaapi"
What the chart does automatically:
- ✅ Mounts
/dev/driinto the container - ✅ Adds supplementalGroups
44(video) and109(render)
Media Library Configuration
Jellyfin needs access to your media files. Three options available:
Option 1: hostPath (Recommended for Home Servers)
Mount media directly from NAS or local storage:
# values.yaml
jellyfin:
mediaDirectories:
- name: movies
mountPath: /media/movies
hostPath: "/mnt/nas/media/movies"
readOnly: true # Jellyfin only needs read access
- name: tvshows
mountPath: /media/tvshows
hostPath: "/mnt/nas/media/tvshows"
readOnly: true
- name: music
mountPath: /media/music
hostPath: "/mnt/nas/media/music"
readOnly: true
Pros:
- ✅ Direct NAS/SMB/NFS mount access
- ✅ No data duplication
- ✅ Easy to manage media files
Cons:
- ⚠️ Requires node affinity (pod must run on node with mount)
Option 2: Persistent Volume Claims (PVC)
Use Kubernetes PVCs for media storage:
# values.yaml
jellyfin:
mediaDirectories:
- name: movies
mountPath: /media/movies
size: 500Gi
storageClass: "fast-ssd"
- name: tvshows
mountPath: /media/tvshows
size: 1Ti
storageClass: "slow-hdd"
Pros:
- ✅ Kubernetes-native storage
- ✅ Portable across nodes
Cons:
- ⚠️ Requires storage provisioner
- ⚠️ May need data migration
Option 3: Existing Claims
Use pre-created PVCs:
# values.yaml
jellyfin:
mediaDirectories:
- name: movies
mountPath: /media/movies
existingClaim: "nfs-movies-pvc"
- name: tvshows
mountPath: /media/tvshows
existingClaim: "nfs-tvshows-pvc"
Transcoding Cache
Configure transcoding cache size based on your needs:
# values.yaml
jellyfin:
transcoding:
cacheSize: 10Gi # Default
threads: 0 # 0 = auto-detect CPU cores
# Home server (reduced)
persistence:
cache:
size: 5Gi
# Production (large)
persistence:
cache:
size: 50Gi
Recommended cache sizes:
- Home Server: 5-10Gi (1-2 concurrent streams)
- Small Team: 20-30Gi (3-5 concurrent streams)
- Production: 50-100Gi (10+ concurrent streams)
Deployment Scenarios
Home Server / Personal Use
Perfect for Raspberry Pi 4, Intel NUC, or small servers:
helm install jellyfin sb-charts/jellyfin \
-f charts/jellyfin/values-home-single.yaml
Resources: 2 CPUs, 2Gi RAM
Storage: 2Gi config, 5Gi cache
GPU: Optional Intel QSV recommended
Startup / Small Team
Balanced configuration:
helm install jellyfin sb-charts/jellyfin \
-f charts/jellyfin/values-startup-single.yaml
Resources: TBD
Storage: TBD
Production / High Availability
Note: Jellyfin uses SQLite by default, which doesn't support HA. For production HA:
- Use external PostgreSQL database
- Deploy multiple read replicas
- Use load balancer
Operational Commands
This chart includes Makefile commands for common operations:
Access & Debugging
# Open shell in Jellyfin pod
make -f make/ops/jellyfin.mk jellyfin-shell
# Tail logs
make -f make/ops/jellyfin.mk jellyfin-logs
# Port forward to localhost:8096
make -f make/ops/jellyfin.mk jellyfin-port-forward
# Get access URL
make -f make/ops/jellyfin.mk jellyfin-get-url
GPU & Configuration
# Check GPU configuration and access
make -f make/ops/jellyfin.mk jellyfin-check-gpu
# Check media directories
make -f make/ops/jellyfin.mk jellyfin-check-media
# Check configuration directory
make -f make/ops/jellyfin.mk jellyfin-check-config
# Check transcoding cache usage
make -f make/ops/jellyfin.mk jellyfin-check-cache
Cache Management
# Clear transcoding cache (WARNING: destroys cache)
make -f make/ops/jellyfin.mk jellyfin-clear-cache
Backup & Restore
# Backup configuration to tmp/jellyfin-backups/
make -f make/ops/jellyfin.mk jellyfin-backup-config
# Restore configuration
make -f make/ops/jellyfin.mk jellyfin-restore-config FILE=tmp/jellyfin-backups/backup.tar.gz
Monitoring
# Show resource usage
make -f make/ops/jellyfin.mk jellyfin-stats
# Describe pod
make -f make/ops/jellyfin.mk jellyfin-describe
# Show pod events
make -f make/ops/jellyfin.mk jellyfin-events
For complete list:
make -f make/ops/jellyfin.mk jellyfin-help
Troubleshooting
GPU Transcoding Not Working
Intel QSV:
-
Verify
/dev/driaccess:make -f make/ops/jellyfin.mk jellyfin-shell ls -la /dev/dri -
Check supplemental groups:
kubectl describe pod <jellyfin-pod> | grep Groups # Should show: 44 109 -
Enable QSV in Jellyfin UI:
- Dashboard → Playback → Transcoding
- Hardware acceleration: Intel QuickSync (QSV)
NVIDIA:
-
Verify NVIDIA GPU Operator is installed:
kubectl get pods -n gpu-operator-resources -
Check GPU resource:
kubectl describe node <node-name> | grep nvidia.com/gpu
AMD VAAPI:
-
Verify
/dev/driaccess (same as Intel QSV) -
Enable VAAPI in Jellyfin UI:
- Dashboard → Playback → Transcoding
- Hardware acceleration: VA-API
Media Library Not Visible
-
Check media directory mounts:
make -f make/ops/jellyfin.mk jellyfin-check-media -
Verify hostPath exists on node:
# On the node ls -la /mnt/nas/media/ -
Check pod events for mount errors:
make -f make/ops/jellyfin.mk jellyfin-events
Transcoding Cache Full
Clear the cache:
make -f make/ops/jellyfin.mk jellyfin-clear-cache
Or increase cache size:
helm upgrade jellyfin sb-charts/jellyfin \
--reuse-values \
--set persistence.cache.size=20Gi
High CPU Usage
- Enable GPU transcoding (see GPU section above)
- Reduce transcoding quality:
- Dashboard → Playback → Transcoding
- Reduce encoder preset (slower = better quality but higher CPU)
Backup & Recovery
Comprehensive backup and recovery procedures for Jellyfin deployments.
Backup Components
Jellyfin backup strategy covers 4 components:
| Component | Priority | Size | Backup Method |
|---|---|---|---|
| Config PVC | 🔴 Critical | 100MB-1GB | tar, Restic, VolumeSnapshot |
| Media Files | 🔴 Critical | Variable (TB+) | NAS/External Backup |
| Transcoding Cache | ⚪ Skip | 5-50GB | Not backed up (rebuildable) |
| Configuration | 🟡 Important | <1MB | ConfigMap export |
Quick Backup Commands
# Full backup (config + database + settings)
make -f make/ops/jellyfin.mk jellyfin-full-backup
# Config-only backup (fastest)
make -f make/ops/jellyfin.mk jellyfin-backup-config
# Database-only backup (SQLite)
make -f make/ops/jellyfin.mk jellyfin-backup-database
# Check backup status
make -f make/ops/jellyfin.mk jellyfin-backup-status
Output: Backups saved to tmp/jellyfin-backups/backup-YYYYMMDD-HHMMSS.tar.gz
Recovery Workflow
Complete disaster recovery in 4 steps:
# 1. Install fresh Jellyfin chart
helm install jellyfin sb-charts/jellyfin -f values.yaml
# 2. Restore configuration
make -f make/ops/jellyfin.mk jellyfin-restore-config \
FILE=tmp/jellyfin-backups/backup-20250109-143022.tar.gz
# 3. Restore database (if separate backup)
make -f make/ops/jellyfin.mk jellyfin-restore-database \
FILE=tmp/jellyfin-backups/library-db-20250109-143022.sql
# 4. Restart pod to apply changes
kubectl rollout restart deployment/jellyfin
Validation:
# Verify libraries restored
make -f make/ops/jellyfin.mk jellyfin-check-libraries
# Check plugin compatibility
make -f make/ops/jellyfin.mk
Deploy jellyfin with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has jellyfin on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartjellyfin is pinned at v0.4.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply