mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
101 lines
2.8 KiB
YAML
101 lines
2.8 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: &app lidarr
|
|
spec:
|
|
interval: 1h
|
|
chartRef:
|
|
kind: OCIRepository
|
|
name: app-template
|
|
install:
|
|
remediation:
|
|
retries: 3
|
|
upgrade:
|
|
cleanupOnFail: true
|
|
remediation:
|
|
strategy: rollback
|
|
retries: 3
|
|
values:
|
|
defaultPodOptions:
|
|
securityContext:
|
|
runAsUser: 568
|
|
runAsGroup: 568
|
|
fsGroup: 568
|
|
fsGroupChangePolicy: OnRootMismatch
|
|
controllers:
|
|
lidarr:
|
|
annotations:
|
|
reloader.stakater.com/auto: "true"
|
|
configmap.reloader.stakater.com/reload: lidarr-pushover
|
|
secret.reloader.stakater.com/reload: lidarr-db-secret
|
|
containers:
|
|
app:
|
|
image:
|
|
repository: ghcr.io/crutonjohn/lidarr-plugins
|
|
tag: 2.14.2.4768@sha256:13924f2c036e0250b96c1aa522757e4673d30ad5c96da186d4efd6582a6e814c
|
|
env:
|
|
TZ: "${TIMEZONE}"
|
|
LIDARR__APP__INSTANCENAME: Lidarr
|
|
LIDARR__SERVER__PORT: &port 8080
|
|
LIDARR__AUTH__METHOD: External
|
|
LIDARR__AUTH__REQUIRED: DisabledForLocalAddresses
|
|
LIDARR__LOG__LEVEL: info
|
|
PUSHOVER_APP_URL: &host "{{ .Release.Name }}.${SECRET_EXTERNAL_DOMAIN}"
|
|
PUSHOVER_PRIORITY: "0"
|
|
envFrom:
|
|
- secretRef:
|
|
name: lidarr-secret
|
|
- secretRef:
|
|
name: lidarr-db-secret
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
memory: 250Mi
|
|
limits:
|
|
memory: 2000Mi
|
|
service:
|
|
app:
|
|
controller: *app
|
|
ports:
|
|
http:
|
|
port: *port
|
|
route:
|
|
app:
|
|
hostnames: ["{{ .Release.Name }}.${SECRET_EXTERNAL_DOMAIN}"]
|
|
parentRefs:
|
|
- name: internal
|
|
namespace: network
|
|
sectionName: https
|
|
rules:
|
|
- backendRefs:
|
|
- name: *app
|
|
port: *port
|
|
persistence:
|
|
config:
|
|
enabled: true
|
|
existingClaim: *app
|
|
globalMounts:
|
|
- path: /config
|
|
music:
|
|
type: nfs
|
|
server: 192.168.9.10
|
|
path: /var/mnt/vol1/music
|
|
globalMounts:
|
|
- path: /mnt/storage/music
|
|
downloads:
|
|
type: nfs
|
|
server: 192.168.9.10
|
|
path: /var/mnt/vol1/downloads
|
|
globalMounts:
|
|
- path: /mnt/storage/downloads
|
|
scripts:
|
|
type: configMap
|
|
name: lidarr-pushover
|
|
defaultMode: 0775 # trunk-ignore(yamllint/octal-values)
|
|
globalMounts:
|
|
- path: /scripts/pushover-notify.sh
|
|
subPath: pushover-notify.sh
|
|
readOnly: true
|