sonarr

by harish2k01

Helm chartv0.3.2App 4.0.20MITVerified publisher

Deploys Sonarr TV automation on Kubernetes

About this chart

Sonarr Helm Chart

Browse the Helm chart catalog to explore available charts and installation commands.

This chart deploys Sonarr using the LinuxServer.io container image, with persistent configuration, optional shared media storage, and optional Ingress or Gateway API HTTPRoute access.

[!NOTE] This is an unofficial community Helm chart maintained by harish2k01. It is not affiliated with or endorsed by the upstream project. For chart issues, questions, or improvements, please open an issue in the harish2k01/helm-charts repository.

Install

helm repo add harish2k01 https://harish2k01.github.io/helm-charts
helm repo update
helm install sonarr harish2k01/sonarr

Install From OCI

This chart is also published as an OCI chart in GHCR. Use the same values and namespace flags with the OCI reference:

helm install sonarr oci://ghcr.io/harish2k01/helm-charts/sonarr --version 0.3.2

Deploy another Sonarr instance by using a different release name and values file:

helm install sonarr-anime harish2k01/sonarr -f sonarr-anime-values.yaml

Install With Gateway API HTTPRoute

httpRoutes:
  main:
    enabled: true
    parentRefs:
      - name: gateway
        namespace: gateway-system
        sectionName: https
    hostnames:
      - sonarr.example.com

Persistence

Sonarr configuration is stored at /config:

persistence:
  config:
    enabled: true
    size: 5Gi
    storageClassName: ""

Media And Hardlinks

For hardlinks and atomic moves, mount the same existing PVC used by qBittorrent and other media automation apps at the same path:

media:
  enabled: true
  existingClaim: media-vault-pvc
  mountPath: /vault
  readOnly: false

Configure Sonarr paths inside the application to stay under that shared mount.

Values

KeyTypeDefaultDescription
replicaCountint1Number of Sonarr replicas
image.repositorystringlscr.io/linuxserver/sonarrContainer image repository
image.tagstring4.0.20Container image tag
image.pullPolicystringIfNotPresentContainer pull policy
env.PUIDstring3000LinuxServer user ID
env.PGIDstring3000LinuxServer group ID
env.TZstringAsia/KolkataContainer timezone
service.typestringClusterIPKubernetes Service type
service.portint8989Kubernetes Service port
service.targetPortint8989Sonarr container port
persistence.config.enabledbooltrueCreate or mount a config PVC
persistence.config.existingClaimstring""Existing PVC for /config
persistence.config.sizestring5GiConfig PVC size
persistence.config.storageClassNamestring""Config PVC storage class
media.enabledboolfalseMount an existing media PVC
media.existingClaimstring""Existing media PVC name
media.mountPathstring/vaultMedia PVC mount path
media.readOnlyboolfalseMount media PVC read-only
ingress.enabledboolfalseCreate a Kubernetes Ingress
httpRoutes.main.enabledboolfalseCreate a Gateway API HTTPRoute
resourcesobject{}Container resource requests and limits
nodeSelectorobject{}Pod node selector
tolerationslist[]Pod tolerations
affinityobject{}Pod affinity

Additional configuration controls

KeyTypeDefaultDescription
envFromlist[]Existing Secret or ConfigMap environment sources; explicit env takes precedence.

Configuration and releases

See runtime configuration for supported environment variables, upstream defaults, persisted settings and Secret examples. See CHANGELOG.md for application release changes, chart changes and upgrade notes.

Multiple HTTPRoutes

Use httpRoutes to define one or more routes, each with its own Gateway references, hostnames, annotations, and rules. The default main entry is disabled.

httpRoutes:
  internal:
    parentRefs:
      - name: internal-gateway
        namespace: ingress
        sectionName: https
    hostnames: [app.internal.example.com]
  external:
    parentRefs:
      - name: external-gateway
        namespace: ingress
        sectionName: https
    hostnames: [app.example.com]

Each map key is a lowercase DNS label of up to 40 characters and becomes the resource-name suffix (<app-fullname>-internal, for example). Long base names are shortened to keep the suffix and stay within 63 characters; collisions fail rendering.

KeyDefaultDescription
httpRoutesDisabled main entryNamed HTTPRoutes; defaults create no routes.
httpRoutes.<name>.enabledtrueSet false to omit an entry, including its attachments.
httpRoutes.<name>.parentRefsRequired when enabledGateway references, with optional namespace and listener section.
httpRoutes.<name>.hostnamesRequired when enabledIndependent explicit hostname list.
httpRoutes.<name>.annotations{}Per-route annotations.
httpRoutes.<name>.rulesPath prefix /Gateway API matches and filters. Backend references are always supplied by the chart using its application Service and HTTP port.

Each route has independent hostnames, attachments, annotations, and rules. Chart-specific backend behavior is retained; Ghost also includes its ActivityPub endpoints when enabled. Gateway API CRDs and a compatible controller are required; the referenced Gateway must allow attachment from this namespace.

Migration from the single-route option

httpRoute has been removed. Move its settings under httpRoutes.main and remove the old key entirely, including httpRoute.enabled: false. Old values fail rendering with a migration message instead of silently dropping traffic. The old resource <app-fullname> is replaced by <app-fullname>-main; coordinate the upgrade with your GitOps pruning policy to avoid overlapping or missing routes. Multiple hostnames and parent references apply to the whole route; use separate entries when each hostname group must attach to a different Gateway.

Health probes

Liveness and readiness probes use the unauthenticated /ping endpoint on the application HTTP port. They retain Host: localhost for compatibility with host allowlists and avoid redirects to the login page. Override livenessProbe.httpGet.path and readinessProbe.httpGet.path when using a custom URL base.

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 v0.3.2 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