This Helm chart installs Sonarr, a television series manager, in a Kubernetes cluster.
This README covers the basics of customising and installation
![]()
Install this helm chart using the following command:
helm repo add media-servarr https://media-servarr.shw.al/charts
helm install sonarr media-servarr/sonarr
Pointing the host media-servarr.local to your kubernetes cluster will then allow you to access the application at the default location of http://media-servarr.local/sonarr/
Here are some examples of configuration you may want to override (and include in installation with -f myvalues.yaml).
To set up secrets, like API keys, use the following format. Use openssl rand -hex 16 to generate a key and replace the default value.
secrets:
# inline value
- name: 'apiKey'
value: 'your-api-key-here'
# reference pre-existing Secret
# - name: 'apiKey'
# ref: 'my-existing-secret'
When ref is set, the chart reads key name from the Secret named by ref in the same namespace.
By not setting this value, and leaving it blank, sonarr will automatically generate a key on start.
By default, base configuration is defined using a ConfigMap - defined by default in ./values.yaml in application.config. You can change values in the contents, such as the url base in your custom values.yaml
application:
port: 8989 # default UI port
urlBase: 'sonarr' # default web base path
config:
contents: |
<Config>
...
<UrlBase>sonarr</UrlBase>
<ApiKey>$apiKey</ApiKey>
<Port>8989</Port>
...
</Config>
You can prevent a ConfigMap being created and the configuration being managed as a kubernetes resource by defining the config as null. For example:
application:
...
config: null
Three volumes are available by default:
deployment:
...
volumes:
config: # The key will be the volume name
persistentVolumeClaim:
claimName: 'sonarr-config'
downloads:
nfs:
server: 'fileserver.local'
path: '/srv/downloads/'
tv:
nfs:
server: 'fileserver.local'
path: '/srv/media/tv/'
By default, a PersistentVolumeClaim will be provisioned for the config, but emptyDir: {} will be used for downloads, and tv, unless otherwise specified in your values.yaml
persistentVolumeClaims:
sonarr-config:
accessMode: 'ReadWriteOnce'
requestStorage: '1Gi'
storageClassName: 'manual'
# volumeName: 'existing-pv-name' # optional: bind this PVC to a specific pre-existing PV
selector:
matchLabels:
type: 'local'
Ingress can be enabled, and you can customise the default host, path, and TLS settings:
ingress:
enabled: true
host: 'example.com'
tls:
# Your TLS settings...
Enabling metrics enables a sidecar container being attached for exportarr - and a ServiceMonitor CRD to be consumed by the kube-prometheus package.
By default, Exportarr reads the apiKey from this chart’s Secret. If you need Exportarr to read a different Secret/key, set metrics.apiref.
metrics:
enabled: true
apiref:
secret: 'my-existing-secret'
keyname: 'apiKey'
env: []
It is recommended to install kube-prometheus chart first for the CRD to be supported. It is not included as a dependency by default in this package!
Unless changed with metrics.port.number you can then consume metrics over port 9706.
Other supported deployment configuration include deployment.nodeSelector, deployment.tolerations, and deployment.affinity
You can also adjust container ports, environment variables (such as adding PGID and PUID) and define a serviceAccount.
Have a look at the parent charts default values.yaml for a comprehensive list of available config.
To upgrade the deployment:
helm upgrade sonarr media-servarr/sonarr -f myvalues.yaml
To uninstall/delete the sonarr deployment:
helm uninstall sonarr
For support, issues, or feature requests, please file an issue on the chart’s repository issue tracker.