mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-09 21:30:39 +02:00
129 lines
3.9 KiB
YAML
129 lines
3.9 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 sonarr
|
|
namespace: default
|
|
spec:
|
|
interval: 1h
|
|
chartRef:
|
|
kind: OCIRepository
|
|
name: app-template
|
|
namespace: flux-system
|
|
install:
|
|
remediation:
|
|
retries: 3
|
|
upgrade:
|
|
cleanupOnFail: true
|
|
remediation:
|
|
strategy: rollback
|
|
retries: 3
|
|
values:
|
|
defaultPodOptions:
|
|
securityContext:
|
|
runAsUser: 568
|
|
runAsGroup: 568
|
|
fsGroup: 568
|
|
fsGroupChangePolicy: OnRootMismatch
|
|
controllers:
|
|
sonarr:
|
|
annotations:
|
|
reloader.stakater.com/auto: "true"
|
|
configmap.reloader.stakater.com/reload: sonarr-pushover
|
|
secret.reloader.stakater.com/reload: sonarr-db-secret
|
|
containers:
|
|
app:
|
|
image:
|
|
repository: ghcr.io/home-operations/sonarr
|
|
tag: 4.0.14.2938@sha256:95c3d63b46c2ff242a0b646086da557a13ef1376f415bb755b9d87c0d94d0330
|
|
env:
|
|
TZ: "${TIMEZONE}"
|
|
SONARR__APP__INSTANCENAME: Sonarr
|
|
SONARR__APP__THEME: dark
|
|
SONARR__AUTH__METHOD: External
|
|
SONARR__AUTH__REQUIRED: DisabledForLocalAddresses
|
|
SONARR__LOG__DBENABLED: "False"
|
|
SONARR__LOG__LEVEL: info
|
|
SONARR__SERVER__PORT: &port 8080
|
|
SONARR__UPDATE__BRANCH: develop
|
|
envFrom:
|
|
- secretRef:
|
|
name: sonarr-secret
|
|
- secretRef:
|
|
name: sonarr-db-secret
|
|
probes:
|
|
liveness: &probes
|
|
enabled: true
|
|
custom: true
|
|
spec:
|
|
httpGet:
|
|
path: /ping
|
|
port: *port
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 3
|
|
readiness: *probes
|
|
startup:
|
|
enabled: false
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
memory: 256M
|
|
limits:
|
|
memory: 4Gi
|
|
service:
|
|
app:
|
|
controller: *app
|
|
ports:
|
|
http:
|
|
port: *port
|
|
ingress:
|
|
app:
|
|
enabled: true
|
|
className: internal
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/auth-method: GET
|
|
nginx.ingress.kubernetes.io/auth-url: http://authelia.default.svc.cluster.local.:8888/api/verify
|
|
nginx.ingress.kubernetes.io/auth-signin: https://auth.${SECRET_EXTERNAL_DOMAIN}?rm=$request_method
|
|
nginx.ingress.kubernetes.io/auth-response-headers: Remote-User,Remote-Name,Remote-Groups,Remote-Email
|
|
nginx.ingress.kubernetes.io/auth-snippet: proxy_set_header X-Forwarded-Method $request_method;
|
|
hajimari.io/icon: mdi:television-classic
|
|
hosts:
|
|
- host: &host "{{ .Release.Name }}.${SECRET_EXTERNAL_DOMAIN}"
|
|
paths:
|
|
- path: /
|
|
service:
|
|
identifier: app
|
|
port: http
|
|
tls:
|
|
- hosts:
|
|
- *host
|
|
persistence:
|
|
config:
|
|
enabled: true
|
|
existingClaim: *app
|
|
globalMounts:
|
|
- path: /config
|
|
downloads:
|
|
type: nfs
|
|
server: 192.168.9.10
|
|
path: /var/mnt/vol1/downloads
|
|
globalMounts:
|
|
- path: /mnt/storage/downloads
|
|
video:
|
|
type: nfs
|
|
server: 192.168.9.10
|
|
path: /var/mnt/vol1/video
|
|
globalMounts:
|
|
- path: /mnt/storage/video
|
|
scripts:
|
|
type: configMap
|
|
name: sonarr-pushover
|
|
defaultMode: 0775 # trunk-ignore(yamllint/octal-values)
|
|
globalMounts:
|
|
- path: /scripts/pushover-notify.sh
|
|
subPath: pushover-notify.sh
|
|
readOnly: true
|