[lidarr] use common chart (#123)

This commit is contained in:
ᗪєνιη ᗷυнʟ 2020-11-08 13:25:59 -05:00 committed by GitHub
parent 5cfe91e0f3
commit 93774a4ed6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 86 additions and 90 deletions

View File

@ -1,31 +1,21 @@
apiVersion: v2 apiVersion: v2
name: lidarr appVersion: 0.8.0.1886
description: Looks and smells like Sonarr but made for music description: Looks and smells like Sonarr but made for music
type: application name: lidarr
version: 4.0.2 version: 5.0.0
appVersion: 0.7.1.1785-ls18
keywords: keywords:
- lidarr - lidarr
- torrent
- usenet
home: https://github.com/k8s-at-home/charts/tree/master/charts/lidarr home: https://github.com/k8s-at-home/charts/tree/master/charts/lidarr
icon: https://github.com/lidarr/Lidarr/blob/develop/Logo/512.png?raw=true icon: https://github.com/lidarr/Lidarr/blob/develop/Logo/512.png?raw=true
sources: sources:
- https://github.com/Lidarr/Lidarr - https://github.com/Lidarr/Lidarr
- https://hub.docker.com/r/linuxserver/lidarr - https://hub.docker.com/r/linuxserver/lidarr
maintainers: maintainers:
- name: DirtyCajunRice - name: billimek
email: nick@cajun.pro email: jeff@billimek.com
url: https://github.com/dirtycajunrice
dependencies: dependencies:
- name: media-common - name: common
repository: https://k8s-at-home.com/charts/ repository: https://k8s-at-home.com/charts/
version: ^1.0.0 version: ^1.0.4
alias: lidarr
annotations:
artifacthub.io/links: |
- name: App Source
url: https://github.com/Lidarr/Lidarr
- name: Default Docker Image
url: https://hub.docker.com/r/linuxserver/lidarr
artifacthub.io/maintainers: |
- name: Nicholas St. Germain
email: nick@cajun.pro

View File

@ -1,4 +1,4 @@
approvers: approvers:
- DirtyCajunRice - billimek
reviewers: reviewers:
- DirtyCajunRice - billimek

View File

@ -1,52 +1,36 @@
# Lidarr | Looks and smells like Sonarr but made for music # Lidarr
Umbrella chart that
* Uses [media-common](https://github.com/k8s-at-home/charts/tree/master/charts/media-common) as a base
* Adds docker image information leveraging the [Linuxserver.io image](https://hub.docker.com/r/linuxserver/lidarr/)
* Deploys [Lidarr](https://github.com/lidarr/Lidarr)
## TL;DR This is a helm chart for [Lidarr](https://github.com/lidarr/Lidarr).
```console
## TL;DR;
```shell
$ helm repo add k8s-at-home https://k8s-at-home.com/charts/ $ helm repo add k8s-at-home https://k8s-at-home.com/charts/
$ helm install k8s-at-home/lidarr $ helm install k8s-at-home/lidarr
``` ```
## Installing the Chart ## Installing the Chart
To install the chart with the release name `lidarr`:
To install the chart with the release name `my-release`:
```console ```console
helm install lidarr k8s-at-home/lidarr helm install --name my-release k8s-at-home/lidarr
``` ```
## Upgrading
Chart versions before 4.0.0 did not use media-common. Upgrading will require you to nest your values.yaml file under
a top-level `lidarr:` key.
Chart versions 1.0.1 and earlier used separate PVCs for Downloads and Music. This presented an issue where Lidarr would
be unable to hard-link files between the /downloads and /music directories when importing media. This is caused because
each PVC exposed to the pod as a separate filesystem. It resulted in Lidarr copying files rather than linking;
using additional storage without the user's knowledge.
This chart now uses a single PVC for Downloads and Music. This means all of your media (and downloads) must be in, or
be subdirectories of, a single directory. If upgrading from an earlier version of the chart, do the following:
1. [Uninstall](#uninstalling-the-chart) your current release
2. On your backing store, organize your media, ie. media/music, media/downloads
3. If using a pre-existing PVC, create a single new PVC for all of your media
4. Refer to the [configuration](#configuration) for updates to the chart values
5. Re-install the chart
6. Update your settings in the app to point to the new PVC, which is mounted at /media. This can be done using Lidarr's
`Mass Editor` under the `Library` tab. Simply select all artists in your library, and use the editor to change the
`Root Folder` and hit save.
## Uninstalling the Chart ## Uninstalling the Chart
To uninstall the `lidarr` deployment:
To uninstall/delete the `my-release` deployment:
```console ```console
helm uninstall lidarr helm delete my-release --purge
``` ```
The command removes all the Kubernetes components associated with the chart and deletes the release. The command removes all the Kubernetes components associated with the chart and deletes the release.
## Configuration ## Configuration
Read through the media-common [values.yaml](https://github.com/k8s-at-home/charts/blob/master/charts/media-common/values.yaml) Read through the charts [values.yaml](https://github.com/k8s-at-home/charts/blob/master/charts/lidarr/values.yaml)
file. It has several commented out suggested values. file. It has several commented out suggested values.
Additionally you can take a look at the common library [values.yaml](https://github.com/k8s-at-home/charts/blob/master/charts/common/values.yaml) for more (advanced) configuration options.
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
```console ```console
@ -60,11 +44,9 @@ chart. For example,
helm install lidarr k8s-at-home/lidarr --values values.yaml helm install lidarr k8s-at-home/lidarr --values values.yaml
``` ```
These values will be nested as it is a dependency, for example
```yaml ```yaml
lidarr: image:
image: tag: ...
tag: ...
``` ```
--- ---
@ -74,6 +56,21 @@ If you get
```console ```console
Error: rendered manifests contain a resource that already exists. Unable to continue with install: existing resource conflict: ...` Error: rendered manifests contain a resource that already exists. Unable to continue with install: existing resource conflict: ...`
``` ```
it may be because you uninstalled the chart with `skipuninstall` enabled, you need to manually delete the pvc or use`existingClaim`. it may be because you uninstalled the chart with `skipuninstall` enabled, you need to manually delete the pvc or use `existingClaim`.
--- ---
## Upgrading an existing Release to a new major version
A major chart version change (like 4.0.1 -> 5.0.0) indicates that there is an incompatible breaking change potentially needing manual actions.
### Upgrading from 4.x.x to 5.x.x
Due to migrating to a centralized common library some values in `values.yaml` have changed.
Examples:
* `service.port` has been moved to `service.port.port`.
* `persistence.type` has been moved to `controllerType`.
Refer to the library values.yaml for more configuration options.

View File

@ -0,0 +1,2 @@
ingress:
enabled: true

View File

@ -0,0 +1 @@
{{- include "common.notes.defaultNotes" . -}}

View File

@ -0,0 +1 @@
{{ include "common.all" . }}

View File

@ -1,10 +1,37 @@
# Default values for lidarr. # Default values for Lidarr.
lidarr: image:
image: repository: linuxserver/lidarr
organization: linuxserver pullPolicy: IfNotPresent
repository: lidarr tag: version-0.8.0.1886
pullPolicy: IfNotPresent
tag: 0.7.1.1785-ls18 service:
service: port:
port: 8686 port: 8686
env: {}
# TZ: UTC
# PUID: 1001
# PGID: 1001
persistence:
config:
enabled: true
emptyDir: true
media:
enabled: true
emptyDir: true
mountPath: /media
## Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
## If undefined (the default) or set to null, no storageClassName spec is
## set, choosing the default provisioner. (gp2 on AWS, standard on
## GKE, AWS & OpenStack)
# storageClass: "-"
# accessMode: ReadWriteOnce
# size: 1Gi
## Do not delete the pvc upon helm uninstall
# skipuninstall: false
# existingClaim: ""

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 3.0.4.993 appVersion: 3.0.4.993
description: Smart PVR for newsgroup and bittorrent users description: Smart PVR for newsgroup and bittorrent users
name: sonarr name: sonarr
version: 7.0.0 version: 7.0.1
keywords: keywords:
- sonarr - sonarr
- torrent - torrent

View File

@ -74,25 +74,3 @@ Examples:
* `persistence.type` has been moved to `controllerType`. * `persistence.type` has been moved to `controllerType`.
Refer to the library values.yaml for more configuration options. Refer to the library values.yaml for more configuration options.
### Upgrading from 5.x.x to 6.x.x
Chart versions before 6.0.0 did not use media-common. Upgrading will require you to nest your values.yaml file under
a top-level `sonarr:` key.
Chart versions 3.2.0 and earlier used separate PVCs for Downloads and TV. This presented an issue where Sonarr would
be unable to hard-link files between the /downloads and /tv directories when importing media. This is caused because
each PVC exposed to the pod as a separate filesystem. It resulted in Sonarr copying files rather than linking; using
additional storage without the user's knowledge.
This chart now uses a single PVC for Downloads and TV. This means all of your media (and downloads) must be in, or
be subdirectories of, a single directory. If upgrading from an earlier version of the chart, do the following:
1. [Uninstall](#uninstalling-the-chart) your current release
2. On your backing store, organize your media, ie. media/tv, media/downloads
3. If using a pre-existing PVC, create a single new PVC for all of your media
4. Refer to the [configuration](#configuration) for updates to the chart values
5. Re-install the chart
6. Update your settings in the app to point to the new PVC, which is mounted at /media. This can be done using Sonarr's
`Series Editor` under the `Series` tab. Simply select all series in your library, and use the editor to change the
`Root Folder` and hit save.