--- # 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 install: remediation: retries: 3 upgrade: cleanupOnFail: true remediation: strategy: rollback retries: 3 values: 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.15.2940@sha256:ca6c735014bdfb04ce043bf1323a068ab1d1228eea5bab8305ca0722df7baf78 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 securityContext: allowPrivilegeEscalation: false readOnlyRootFilesystem: true capabilities: { drop: [ALL] } resources: requests: cpu: 100m limits: memory: 2Gi defaultPodOptions: securityContext: runAsNonRoot: true runAsUser: 1000 runAsGroup: 1000 fsGroup: 1000 fsGroupChangePolicy: OnRootMismatch 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 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