sonarr

by alekc

Helm chartv1.9.1App release-4.0.20.3014GPL-3.0Verified publisher

TV series collection manager for Usenet and BitTorrent that automates search, download, and library organization

About this chart

sonarr

TV series collection manager for Usenet and BitTorrent that automates search, download, and library organization

Sonarr monitors a wanted episode list, searches indexers (via Prowlarr or its own), and hands the result to a download client, then imports and renames the finished file into your library. This chart wraps the hotio Sonarr image.

Quick start

helm repo add alekc https://charts.alekc.dev
helm repo update
helm install my-sonarr alekc/sonarr \
  --set persistence.enabled=true \
  --set ingress.enabled=true

Or directly from the OCI registry, no helm repo add needed:

helm install my-sonarr oci://charts.alekc.dev/sonarr --version 1.9.0

Verifying the signature

curl -sO https://charts.alekc.dev/pubring.gpg
helm pull oci://charts.alekc.dev/sonarr --version 1.9.0 --verify --keyring pubring.gpg

A minimal working values.yaml:

persistence:
  enabled: true
  size: 1Gi
ingress:
  enabled: true
  hosts:
    - host: sonarr.example.com
      paths:
        - path: /
          pathType: ImplementationSpecific

Maintainers

NameEmailUrl
alekc[email protected]

Source Code

Values

KeyTypeDefaultDescription
additionalManifestsobject{}Additional raw Kubernetes manifests to render alongside the chart's own resources. Supports any valid Kubernetes object; values are templated with tpl, so a manifest can reference .Release.Namespace and friends.
affinityobject{}
annotations.deploymentobject{}Deployment's annotations
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
commonAnnotationsobject{}Annotations merged onto every resource this chart renders, in addition to each resource's own dedicated annotations field.
commonLabelsobject{}Labels merged onto every resource this chart renders. Never reaches selector/matchLabels, safe to change without forcing a Deployment recreate.
deployment.strategyobject{"type":"Recreate"}Deployment strategy
env.PGIDstring"1000"
env.PUIDstring"1000"
env.TZstring"Europe/London"
env.UMASKstring"002"
extraContainerslist[]Extra sidecar containers appended to the pod spec, templated with tpl so they can reference .Release.Namespace and friends.
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"ghcr.io/hotio/sonarr"
image.tagstring""Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
initContainerslist[]Init Containers
livenessProbeobject{"enabled":true,"failureThreshold":12,"httpGet":{"path":"/ping","port":"http"},"periodSeconds":10}Pod liveness probe. Set enabled: false to disable rather than overriding the block to {}/null, Helm's deep merge would leave a non-empty default in place either way.
nameOverridestring""
networkPolicy.annotationsobject{}Annotations to add to the NetworkPolicy
networkPolicy.enabledboolfalseRender a NetworkPolicy restricting ingress to the Service port and egress to DNS plus a broad allowance. Sonarr fetches metadata and downloads over the internet, so egress is broad by default, see Gotchas.
networkPolicy.extraEgresslist[]Additional raw egress rules, appended as-is under spec.egress.
networkPolicy.extraIngresslist[]Additional raw ingress rules, appended as-is under spec.ingress.
nodeSelectorobject{}
persistence.accessModestring"ReadWriteOnce"
persistence.additionalMountslist[]if you need any additional volume mounts, you can define them here
persistence.additionalVolumeslist[]if you need any additional volumes, you can define them here
persistence.annotationsobject{}Annotations to add to the PersistentVolumeClaim
persistence.enabledbooltrue
persistence.existingClaimstring""
persistence.sizestring"800Mi"
persistence.storageClassstring""
podAnnotationsobject{}
podSecurityContextobject{}
readinessProbeobject{"enabled":true,"failureThreshold":12,"httpGet":{"path":"/ping","port":"http"},"periodSeconds":10}Pod readiness probe. Same enabled: false toggle as livenessProbe.
replicaCountint1
resourcesobject{}
securityContextobject{}
service.annotationsobject{}Annotations to add to the Service
service.portint80
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""If not set and create is true, a name is generated using the fullname template
startupProbeobject{"enabled":true,"failureThreshold":30,"httpGet":{"path":"/ping","port":"http"},"periodSeconds":10}Pod startup probe. While this is failing, liveness/readiness aren't checked at all, giving the hotio image's s6-overlay init generous grace (30 failures * 10s = up to 300s) before liveness starts enforcing. Same enabled: false toggle as livenessProbe.
tolerationslist[]

Gotchas

  • persistence.enabled defaults to true. Sonarr's config, including indexer/download client credentials and the series database, lives at /config; without persistence it's lost on every pod restart.
  • The TV library itself isn't covered by persistence. Mount your actual media storage via persistence.additionalVolumes/additionalMounts, persistence.size is only for /config.
  • networkPolicy.enabled allows broad egress to 0.0.0.0/0 by default. Sonarr talks to indexers and download clients across the internet, which isn't a small fixed CIDR. Narrow it with networkPolicy.extraEgress if your indexer/download-client set is fixed and known.
  • startupProbe gives the hotio image up to 300s (30 failures * 10s) before liveness/readiness start enforcing at all. Once it succeeds once, it stops running; liveness/readiness take over on the same /ping endpoint from then on.

Upgrade notes

No breaking changes yet. This section will list migration steps for any future release with a kind: removed or kind: changed entry in artifacthub.io/changes that requires one.

Deploy sonarr with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has sonarr 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartsonarr is pinned at v1.9.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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