Files
media-gitops/values.yaml
T

253 lines
8.1 KiB
YAML

## Values for the media chart.
##
## Every entry under `apps:` renders a Deployment + Service, and optionally a config PVC
## and an Ingress. All apps that set `media: true` share one hostPath directory on the
## node, mounted at the same path in every pod, so Sonarr/Radarr can hardlink finished
## downloads into the library instead of copying them.
namespace: media
# Passed to all linuxserver.io images (they drop privileges to this UID/GID).
common:
puid: 1000
pgid: 1000
tz: Europe/Berlin
media:
# Directory on the node (loki). Created on first start if missing.
hostPath: /srv/media
# Same path inside every pod - required for hardlinks and for path mapping between
# SABnzbd and Sonarr/Radarr to just work.
mountPath: /data
# Created (and chowned to puid:pgid) by an init container. Parents must be listed
# before children. Non-recursive: existing files are never touched.
dirs:
- usenet
- usenet/incomplete
- usenet/complete
- usenet/complete/tv
- usenet/complete/movies
- media
- media/tv
- media/movies
- media/anime
- media/anime/tv
- media/anime/movies
# Books & manga (LazyLibrarian / Mylar3 download, Kavita reads)
- usenet/complete/books
- usenet/complete/comics
- media/books
- media/manga
ingress:
className: nginx
# Each app with `ingress: true` gets <name>.<domain>. The DNS records point at the
# node's private IP, so the UIs are only reachable from the LAN / via VPN.
domain: smokyzone.de
# DNS-01 works for hostnames that only resolve to a private IP.
clusterIssuer: letsencrypt-dns-cloudflare
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 100m
# LAN-only: home network + pods (incl. the Tailscale subnet router, 10.1.0.0/16), but
# NOT 192.168.2.218 - the router's internet forward (443 -> NodePort 30444, for git)
# arrives SNATed as the node's own IP. So internet clients that send this hostname
# get 403, while LAN clients reach the ingress directly on hostPort 443 with their
# real IP. Side effect: LAN access via :30444 is blocked too (use the URL without port).
nginx.ingress.kubernetes.io/whitelist-source-range: "192.168.2.0/25,192.168.2.128/26,192.168.2.192/28,192.168.2.208/29,192.168.2.216/31,192.168.2.219/32,192.168.2.220/30,192.168.2.224/27,10.1.0.0/16"
# StorageClass for the per-app config PVCs, empty = cluster default.
storageClassName: ""
networkPolicy:
# loki's addresses: kubelet probes and hostNetwork pods (Home Assistant) come from here.
# 10.1.215.192 = vxlan.calico interface (host -> pod traffic may use it as source).
nodeIPs:
- 192.168.2.218
- 10.1.215.192
# Weekly active search for upgrades (German instead of English-only), see
# templates/upgrade-search.yaml. Sunday 03:00 local time.
upgradeSearch:
enabled: true
schedule: "0 3 * * 0"
initImage: busybox:1.38
apps:
jellyfin:
enabled: true
image: lscr.io/linuxserver/jellyfin:12.3ubu2604-ls56
port: 8096
configPath: /config
configSize: 20Gi
media: true
ingress: true
# Intel QuickSync (UHD 630): requests gpu.intel.com/i915 from the Intel GPU device
# plugin (apps-in-apps: intel-gpu-plugin), which injects /dev/dri. Not privileged.
gpu: true
# Remote access without VPN (templates/public-ingress.yaml): DE-only via GeoIP in
# ingress-nginx, rate limited. jellyfin.smokyzone.de stays LAN/Tailscale-only.
# templates/networkpolicy.yaml: only ingress-nginx, Seerr and the node may connect;
# Jellyfin itself may only reach DNS and the public internet.
networkPolicy:
allowFrom:
- seerr
# SeerrFin plugin (runs inside Jellyfin) talks to the Seerr API server-side.
allowTo:
- app: seerr
port: 5055
publicIngress:
host: tv.smokyzone.de
# The web UI loads 40+ scripts/images in parallel at startup (plugins: SeerrFin,
# Featured, Bonfire ...). With HTTP/2 every stream counts against limit-connections;
# 30 caused 429s for plugin scripts. Login stays limited separately (10/min).
limitRps: "50"
limitConnections: "100"
# Jellyfin's routing is case-insensitive, nginx paths are not -> both spellings.
loginPaths:
- /Users/AuthenticateByName
- /users/authenticatebyname
- /Users/ForgotPassword
- /users/forgotpassword
ingressAnnotations:
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-buffering: "off"
env:
- name: JELLYFIN_PublishedServerUrl
value: https://jellyfin.smokyzone.de
resources:
requests: {cpu: 250m, memory: 512Mi}
limits: {cpu: "4", memory: 4Gi}
sonarr:
enabled: true
image: lscr.io/linuxserver/sonarr:4.0.20.3014-ls2
port: 8989
configPath: /config
configSize: 5Gi
media: true
ingress: true
resources:
requests: {cpu: 100m, memory: 256Mi}
limits: {cpu: "1", memory: 1Gi}
radarr:
enabled: true
image: lscr.io/linuxserver/radarr:6.4.4.10685-ls325
port: 7878
configPath: /config
configSize: 5Gi
media: true
ingress: true
resources:
requests: {cpu: 100m, memory: 256Mi}
limits: {cpu: "1", memory: 1Gi}
prowlarr:
enabled: true
image: lscr.io/linuxserver/prowlarr:2.7.0.5723-ls166
port: 9696
configPath: /config
configSize: 2Gi
ingress: true
resources:
requests: {cpu: 50m, memory: 128Mi}
limits: {cpu: 500m, memory: 512Mi}
sabnzbd:
enabled: true
image: lscr.io/linuxserver/sabnzbd:5.1.3-ls279
port: 8080
configPath: /config
configSize: 2Gi
media: true
ingress: true
# SABnzbd rejects requests whose Host header is not whitelisted. Seed/repair
# host_whitelist so the ingress hostname and the in-cluster service names work.
sabnzbdHostWhitelist: true
resources:
requests: {cpu: 100m, memory: 256Mi}
# Unpacking/repair is CPU heavy.
limits: {cpu: "3", memory: 2Gi}
bazarr:
enabled: true
image: lscr.io/linuxserver/bazarr:v1.6.2-ls370
port: 6767
configPath: /config
configSize: 2Gi
media: true
ingress: true
resources:
requests: {cpu: 50m, memory: 128Mi}
limits: {cpu: 500m, memory: 512Mi}
seerr:
enabled: true
# Successor of Jellyseerr/Overseerr.
image: ghcr.io/seerr-team/seerr:v3.5.1
port: 5055
configPath: /app/config
configSize: 1Gi
ingress: true
linuxserver: false
resources:
requests: {cpu: 50m, memory: 192Mi}
limits: {cpu: 500m, memory: 768Mi}
# --- Books & manga ---------------------------------------------------------------
# Kavita: reader for manga (right-to-left, double pages) and e-books, mobile web/PWA + OPDS.
# Libraries: /data/media/manga, /data/media/books.
kavita:
enabled: true
image: lscr.io/linuxserver/kavita:v0.9.1.4-ls130
port: 5000
configPath: /config
configSize: 5Gi
media: true
ingress: true
resources:
requests: {cpu: 50m, memory: 256Mi}
limits: {cpu: "2", memory: 2Gi}
# LazyLibrarian: e-book automation (Prowlarr -> SABnzbd category "books" -> /data/media/books).
lazylibrarian:
enabled: true
image: lscr.io/linuxserver/lazylibrarian:dbf29bf2-ls388
port: 5299
configPath: /config
configSize: 2Gi
media: true
ingress: true
resources:
requests: {cpu: 50m, memory: 192Mi}
limits: {cpu: "1", memory: 1Gi}
# Mylar3: manga/comic automation via ComicVine metadata
# (Prowlarr -> SABnzbd category "comics" -> /data/media/manga).
mylar:
enabled: true
image: lscr.io/linuxserver/mylar3:v0.11.0-ls278
port: 8090
configPath: /config
configSize: 2Gi
media: true
ingress: true
resources:
requests: {cpu: 50m, memory: 192Mi}
limits: {cpu: "1", memory: 1Gi}
flaresolverr:
enabled: true
image: ghcr.io/flaresolverr/flaresolverr:v3.5.2
port: 8191
# Stateless, only used by Prowlarr in-cluster (http://flaresolverr:8191).
linuxserver: false
env:
- name: LOG_LEVEL
value: info
resources:
requests: {cpu: 50m, memory: 256Mi}
limits: {cpu: "1", memory: 1Gi}