lidarr
by bdclark
Music collection manager for usenet and torrent users
About this chart
Lidarr Helm Chart
Music collection manager for usenet and torrent users
[!NOTE] This chart is under active development. Breaking changes may occur between minor versions.
Installing
helm repo add bdclark https://bdclark.github.io/helm-charts
helm repo update
helm install lidarr bdclark/lidarr -f values.yaml
Environment Variables
Environment variables can be set via env (inline values or refs) and envFrom (bulk refs).
LinuxServer Variables
This chart uses the LinuxServer.io Lidarr image, which supports common environment variables:
env:
TZ: America/New_York
PUID: "1000"
PGID: "1000"
Lidarr Configuration Overrides
Lidarr supports environment variables to override entries in config.xml. Variables follow the pattern
LIDARR__<NAMESPACE>__<SETTING>. See the Servarr Wiki
for details.
env:
# Server settings
LIDARR__SERVER__PORT: "8686"
LIDARR__SERVER__URLBASE: /lidarr
# Logging
LIDARR__LOG__LEVEL: info
# Authentication
LIDARR__AUTH__METHOD: Forms
LIDARR__AUTH__REQUIRED: Enabled
# PostgreSQL (optional - replaces SQLite)
LIDARR__POSTGRES__HOST: postgres
LIDARR__POSTGRES__PORT: "5432"
LIDARR__POSTGRES__USER: lidarr
LIDARR__POSTGRES__MAINDB: lidarr-main
LIDARR__POSTGRES__LOGDB: lidarr-log
LIDARR__POSTGRES__PASSWORD:
valueFrom:
secretKeyRef:
name: lidarr-postgres
key: password
Bulk Environment Variables
For bulk environment variables from ConfigMaps or Secrets:
envFrom:
- secretRef:
name: lidarr-credentials
- configMapRef:
name: lidarr-config
Persistence
Two persistent volumes are available: config for Lidarr's database and settings, and data for media files.
Both are enabled by default.
persistence:
config:
enabled: true
size: 1Gi
# storageClass: ""
# existingClaim: lidarr-config
data:
enabled: true
size: 100Gi
mountPath: /data
# storageClass: ""
# existingClaim: media-library
Using Existing Claims
To use pre-existing PVCs (useful for shared media libraries):
persistence:
config:
enabled: true
existingClaim: lidarr-config
data:
enabled: true
existingClaim: shared-media
Additional Volumes
For more complex storage setups, use volumes and volumeMounts:
volumes:
- name: music
nfs:
server: nas.local
path: /volume1/music
- name: downloads
persistentVolumeClaim:
claimName: downloads-pvc
volumeMounts:
- name: music
mountPath: /music
- name: downloads
mountPath: /downloads
Config Bootstrapping
The chart can seed Lidarr's config.xml on first run when bootstrap.enabled is true.
This is useful for pre-configuring settings before Lidarr starts. By default, the config
file is only created if it doesn't already exist, preserving existing configurations.
[!NOTE] Bootstrap requires
persistence.config.enabledto be true.
Inline config creates a ConfigMap automatically:
bootstrap:
enabled: true
config: |
<Config>
<UrlBase>/lidarr</UrlBase>
<AuthenticationMethod>Forms</AuthenticationMethod>
</Config>
To use an existing ConfigMap or Secret:
bootstrap:
enabled: true
existingConfig:
type: secret # or "configMap"
name: lidarr-config
key: config.xml
Enforcing Configuration (GitOps)
For GitOps workflows where the configuration should always match the source of truth,
set bootstrap.overwrite to true. This overwrites config.xml on every pod startup:
bootstrap:
enabled: true
overwrite: true
existingConfig:
type: secret
name: lidarr-config
key: config.xml
[!WARNING] With
overwrite: true, any changes made through the Lidarr UI will be lost on pod restart.
Ingress
Enable ingress to expose Lidarr externally:
ingress:
enabled: true
className: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt
hosts:
- host: lidarr.example.com
paths:
- path: /
pathType: Prefix
tls:
- secretName: lidarr-tls
hosts:
- lidarr.example.com
Configuration
| Key | Type | Default | Description |
|---|---|---|---|
| nameOverride | string | "" | Override the release name. |
| fullnameOverride | string | "" | Override the full release name. |
| replicaCount | int | 1 | Number of replicas. |
| strategy | object | {"type":"Recreate"} | Deployment update strategy. |
| imagePullSecrets | list | [] | Image pull secrets. |
| deploymentAnnotations | object | {} | Annotations for the Deployment. |
| extraDeploymentLabels | object | {} | Additional labels for the Deployment. |
| podAnnotations | object | {} | Annotations for pods. |
| podLabels | object | {} | Additional labels for pods. |
| commonLabels | object | {} | Labels to add to all resources. |
| podSecurityContext | object | {} | Pod security context. |
| image.repository | string | "linuxserver/lidarr" | Image repository. |
| image.tag | string | "" | Image tag (defaults to chart appVersion). |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy. |
| securityContext | object | {} | Container security context. |
| resources | object | {} | Resource requests and limits. |
| ports | list | [{"containerPort":8686,"name":"http","protocol":"TCP"}] | Container ports. |
| startupProbe | object | {} | Startup probe configuration. |
| livenessProbe | object | {} | Liveness probe configuration. |
| readinessProbe | object | {} | Readiness probe configuration. |
| env | object | {} (see values.yaml comments for examples) | Environment variables. |
| envFrom | list | [] | Environment variables from ConfigMaps or Secrets. |
| bootstrap.enabled | bool | false | Create a config.xml file if missing. Requires persistence.config.enabled=true. |
| bootstrap.overwrite | bool | false | If true, overwrite config on every startup (useful for GitOps). |
| bootstrap.mountPath | string | "/config" | Directory containing the configuration file. |
| bootstrap.config | string | Sane defaults for containerized deployment. | Initial configuration content (used when existingConfig.type is empty). |
| bootstrap.existingConfig.type | string | "" | Source type for existing config: "configMap", "secret", or "" (use bootstrap.config). |
| bootstrap.existingConfig.name | string | "" | Name of the ConfigMap or Secret. |
| bootstrap.existingConfig.key | string | "config.xml" | Key containing the configuration data. |
| persistence.config.enabled | bool | true | Enable persistence for config. |
| persistence.config.mountPath | string | "/config" | Mount path. |
| persistence.config.subPath | string | "" | Subdirectory of the volume to mount (optional). |
| persistence.config.storageClass | string | "" | Storage class ("-" for default, "" for cluster default). |
| persistence.config.accessModes | list | ["ReadWriteOnce"] | Access modes. |
| persistence.config.size | string | "1Gi" | Volume size. |
| persistence.config.existingClaim | string | "" | Use existing PVC (disables provisioning). |
| persistence.config.extraLabels | object | {} | Additional labels for PVCs created by this chart. |
| persistence.config.annotations | object | {} | PVC annotations. |
| persistence.data.enabled | bool | true | Enable persistence for data. |
| persistence.data.mountPath | string | "/data" | Mount path. |
| persistence.data.subPath | string | "" | Subdirectory of the volume to mount (optional). |
| persistence.data.storageClass | string | "" | Storage class ("-" for default, "" for cluster default). |
| persistence.data.accessModes | list | ["ReadWriteOnce"] | Access modes. |
| persistence.data.size | string | "100Gi" | Volume size. |
| persistence.data.existingClaim | string | "" | Use existing PVC (disables provisioning). |
| persistence.data.extraLabels | object | {} | Additional labels for PVCs created by this chart. |
| persistence.data.annotations | object | {} | PVC annotations. |
| volumeMounts | list | [] | Additional volume mounts. |
| service.type | string | "ClusterIP" | Service type. |
| service.port | int | 8686 | Service port. |
| ingress.enabled | bool | false | Enable Ingress. |
| ingress.className | string | "" | Ingress class name. |
| ingress.annotations | object | {} | Ingress annotations. |
| ingress.hosts | list | [{"host":"lidarr.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}] | Ingress hosts. |
| ingress.tls | list | [] | Ingress TLS configuration. |
| initContainers | list | [] | Additional init containers. |
| extraContainers | list | [] | Additional containers. |
| volumes | list | [] | Additional volumes. |
| nodeSelector | object | {} | Node selector. |
| tolerations | list | [] | Tolerations. |
| affinity | object | {} | Affinity rules. |
License
MIT - see LICENSE.
Deploy lidarr with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has lidarr 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartlidarr is pinned at v0.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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