Media stack (usenet)¶
SABnzbd and the *arr apps run in namespace media (ArgoCD category cluster/apps/media/, project media). Every app
is its own ArgoCD app built on bjw-s app-template, with images from ghcr.io/home-operations/*. The design is in
.archive/.plans/superpowers/specs/2026-10-15-usenet-media-stack-design.md.
Apps¶
| App | Role | URL (LAN only) |
|---|---|---|
sabnzbd |
usenet downloader | sabnzbd.<private-domain> |
prowlarr |
indexer manager, syncs to the *arrs | prowlarr.<private-domain> |
sonarr / radarr / lidarr |
TV / movies / music | <app>.<private-domain> |
bazarr |
subtitles for Sonarr and Radarr | bazarr.<private-domain> |
lingarr |
subtitle translation for Bazarr | lingarr.<private-domain> |
recyclarr |
server, syncs TRaSH profiles daily | - |
media-storage |
the shared /media PV and PVC |
- |
All routes are on envoy-internal only. The *arrs run with AUTH__REQUIRED=Enabled and no preset method, so the first
visit shows the authentication setup: choose Forms and create the admin user right after the first deploy. SABnzbd has
no such prompt and is open to the LAN until you set a username and password (General, Security), so do that first.
Storage layout¶
The QNAP share /media is mounted once (PVC media) at /data in every pod, so downloads and libraries share a
filesystem and imports are hardlinks:
/data
├── usenet/complete/{tv,movies,music} # SABnzbd categories
├── tv-series # Sonarr root folder, Jellyfin library
├── movies # Radarr root folder, Jellyfin library
└── music # Lidarr root folder, Jellyfin library
SABnzbd's incomplete directory is /incomplete, a 100Gi ceph-block PVC (sabnzbd-incomplete, not backed up). Config
PVCs are ceph-block and backed up by volsync. Container paths are identical in every pod, so no remote path mappings
are needed.
API keys¶
SONARR_API_KEY, RADARR_API_KEY, LIDARR_API_KEY and PROWLARR_API_KEY live in Bitwarden and reach the pods
through each app's <app>-secrets ExternalSecret (<APP>__AUTH__APIKEY). Everything else (indexers, news servers,
download clients) is entered in the UIs and stored in the config PVCs.
First-run setup order¶
- SABnzbd: set a username and password (General, Security), add the news servers (primary at priority 0, backup on another backbone at a higher number), create
categories
tv,movies,musicpointing atusenet/complete/<category>, set the incomplete dir to/incomplete, and set the free-space pause. Follow the TRaSH SABnzbd guide for the rest. - Prowlarr: add the three indexers, then register Sonarr, Radarr and Lidarr as applications with full sync.
- Sonarr / Radarr / Lidarr: add SABnzbd as a download client (host
sabnzbd, port 8080; the short service name and the.media.svc.cluster.localforms are in its host whitelist) with the matching category; root folders/data/tv-series,/data/movies,/data/music; Completed Download Handling on; "Use hardlinks instead of copy" on; naming per TRaSH.
Hardlink check¶
Run once after the share is populated (it needs a writable /data):
kubectl -n media exec deploy/sabnzbd -- sh -c 'echo test > /data/usenet/complete/.hl-src && ln /data/usenet/complete/.hl-src /data/tv-series/.hl-dst && stat -c "%i %h %n" /data/usenet/complete/.hl-src /data/tv-series/.hl-dst; rm -f /data/usenet/complete/.hl-src /data/tv-series/.hl-dst'
Both lines must show the same inode and link count 2. Different inodes or Operation not permitted mean hardlinks do
not work on this export and imports fall back to copy.
Notes¶
- Pods stay
ContainerCreatinguntil the QNAP export exists and is reachable; there is no alert for that. - Removing an app needs the manual procedure in the repo memory (
reference_app_removal_procedure); the appset never prunes Applications. - Not part of this stack yet: metrics and alerts.
Jellyfin¶
Jellyfin (namespace jellyfin) has its own PV/PVC jellyfin-media on the same /media export and mounts three
subPaths at the same container paths as before: tv-series at /data/tvshows, movies at /data/movies and music
at /data/music. The subPath directories must exist and be owned by 1001 before the pod starts, otherwise kubelet
creates them root-owned. The libraries inside Jellyfin did not need to change.
Music Assistant (home-automation) mounts the same export read-only with subPath: music at /media/music. Nothing
reads the old tv-series, movies and music QNAP shares any more, so they can be deleted after the grace period.
Recyclarr¶
Recyclarr v9 runs as a server (Deployment) that syncs Sonarr and Radarr daily (server.schedule.cron in
settings.yml, 04:30 CET) and keeps the TRaSH quality definitions, the WEB-1080p profile (Sonarr) and the
HD Bluray + WEB profile (Radarr) with their custom formats in place. The recyclarr.yml in
cluster/apps/media/recyclarr/values.yaml is a copy of those two templates from the recyclarr/config-templates
repository (default custom format groups only). To change a profile or enable an optional group, edit that ConfigMap.
Lidarr is not managed.
The server needs RECYCLARR_API_KEY (at least 32 characters, from Bitwarden through recyclarr-secrets). State is on
a small ceph-block PVC that is not backed up; if it is lost, the next sync adopts the existing resources again.
It does not sync on startup. After the first deploy, run a sync once and read the output:
A failed scheduled sync no longer fails a Kubernetes Job, so nothing alerts on it; check kubectl -n media logs
deploy/recyclarr.
Then pick the new profile on the series and movies (the default profile is not changed by Recyclarr).
Bazarr¶
Bazarr mounts /data and writes subtitles next to the media. In its UI set a login (Settings, General, Security), add
Sonarr (sonarr, port 8989) and Radarr (radarr, port 7878) with their API keys (Settings, Sonarr / Radarr), and add
subtitle providers and languages.
Lingarr¶
Lingarr translates subtitles for Bazarr. It calls the AI gateway alias cheap (Gemini Flash Lite via OpenRouter, see
docs/src/k8s/ai-gateway.md) through the OpenAI-compatible LOCAL_AI_ENDPOINT, English to Polish, one job at a time.
The local model on nv1 was tried and rejected for subtitles (docs/src/k8s/nv1-jetson.md). The settings are environment variables in cluster/apps/media/lingarr/values.yaml; its
SQLite config lives on a 1Gi ceph-block PVC and is not backed up, since everything in it can be recreated.
To use it from Bazarr, set Settings, Subtitles, Translating: translator Lingarr and URL
http://lingarr.media.svc.cluster.local:9876. Bazarr waits up to 32 minutes per request. Translation runs on the single
llama-server slot, so one batch at a time. To change the model, edit LOCAL_AI_MODEL and the
llama-server alias together. Lingarr has no batch size setting and sends a whole subtitle file as one request, about 25
output tokens per cue, so llama-server's --n-predict (server.nPredict, see nv1-jetson.md) must cover a full
episode: 2048 truncated the JSON and every retry failed. The first episode has not been compared against the Gemini
translation yet.
_[VIP]: Virtual IP (Used for high-availability controlplanes)
_[HA]: High Availability (often reduntant hardware/software)
_[PVC]: k8s resource - Persistent Volume Claim
_[PV]: k8s resource - Persistent Volume
_[CNI]: k8s networking - Container Network Interface
_[k8s]: Shortening of Kurbenetes
_[CRD]: Custom Resource Definitions
_[S3]: Simple Storage Service
_[NFS]: Network File System
_[DR]: Disaster Recovery