cleanuparr
by drinkataco
Companion application to Sonarr and Radarr to clean up failed and completed downloads
About this chart
Cleanuparr Helm Chart
This Helm chart installs Cleanuparr, a companion application for Radarr, Lidarr, and Sonarr to manage unwanted or blocked files.
This README covers the basics of customising and installation
- Installation
- Configuration
- Secrets
- Application Configuration
- Volumes
- Ingress
- Metrics
- Advanced
- Upgrading
- Uninstallation
- Support
Installation
Install this helm chart using the following command:
helm repo add media-servarr https://media-servarr.shw.al/charts
helm install cleanuparr media-servarr/cleanuparr
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/cleanuparr/
Configuration
Here are some examples of configuration you may want to override (and include in installation with -f myvalues.yaml).
Secrets
Cleanuparr defines apiKey by default, and you can optionally define integration keys such as sonarrApiKey and radarrApiKey.
You can either define secret values directly in your chart values, or reference keys from an existing Secret.
secrets:
# inline value
- name: 'apiKey'
value: 'your-api-key-here'
# reference pre-existing Secret
- name: 'sonarrApiKey'
ref: 'sonarr-api-secret'
- name: 'radarrApiKey'
ref: 'radarr-api-secret'
When ref is set, the chart reads key name from the Secret named by ref in the same namespace.
Application Configuration
Application configuration is managed via the GUI and stored in the application database.
Volumes
Two volumes are included:
- config - General config data, where the sqlite database exists, for example
- downloads - Mounted at
/downloads, the directory Cleanuparr prunes
downloads should be the same volume your download client writes to. It defaults to an emptyDir:
deployment:
...
volumes:
config: # The key will be the volume name
persistentVolumeClaim:
claimName: 'cleanuparr-config'
downloads:
persistentVolumeClaim:
claimName: 'media-downloads'
By default, a PersistentVolumeClaim will be provisioned for the config named cleanuparr-config.
persistentVolumeClaims:
cleanuparr-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
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...
Metrics
Metrics are not supported for this application.
Advanced
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.
Upgrading
To upgrade the deployment:
helm upgrade cleanuparr media-servarr/cleanuparr -f myvalues.yaml
Uninstallation
To uninstall/delete the cleanuparr deployment:
helm uninstall cleanuparr
Support
For support, issues, or feature requests, please file an issue on the chart's repository issue tracker.
Deploy cleanuparr with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cleanuparr 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 chartcleanuparr is pinned at v0.24.2 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