Files
media-gitops/values.yaml
T
SmokyZoneandClaude Opus 5.5 3a60751c2e Restrict ingress to LAN and Tailscale
The router forwards internet traffic for git to the ingress NodePort, so
every hostname was reachable from the internet by its Host header.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-18 14:23:11 +02:00

170 lines
5.2 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
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: ""
initImage: busybox:1.36
apps:
jellyfin:
enabled: true
image: lscr.io/linuxserver/jellyfin:12.2ubu2604-ls52
port: 8096
configPath: /config
configSize: 20Gi
media: true
ingress: true
# Mounts /dev/dri for Intel QuickSync (UHD 630). Needs a privileged container,
# because the device cgroup blocks /dev/dri for unprivileged pods without a GPU
# device plugin.
gpu: true
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-ls326
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-ls319
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.6.5.5623-ls162
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-ls275
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-ls366
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.0
port: 5055
configPath: /app/config
configSize: 1Gi
ingress: true
linuxserver: false
resources:
requests: {cpu: 50m, memory: 192Mi}
limits: {cpu: 500m, memory: 768Mi}
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}