2024-01-27 21:20:46 -06:00
|
|
|
---
|
2024-03-19 17:38:08 -05:00
|
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
|
2024-01-27 21:20:46 -06:00
|
|
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
|
|
|
kind: HelmRelease
|
|
|
|
metadata:
|
|
|
|
name: sonarr
|
|
|
|
spec:
|
|
|
|
interval: 30m
|
|
|
|
chart:
|
|
|
|
spec:
|
|
|
|
chart: app-template
|
2024-03-19 17:20:21 -05:00
|
|
|
version: 3.0.4
|
2024-01-27 21:20:46 -06:00
|
|
|
sourceRef:
|
|
|
|
kind: HelmRepository
|
|
|
|
name: bjw-s
|
|
|
|
namespace: flux-system
|
|
|
|
install:
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
|
|
|
upgrade:
|
|
|
|
cleanupOnFail: true
|
|
|
|
remediation:
|
|
|
|
retries: 3
|
2024-03-19 18:43:34 -05:00
|
|
|
strategy: rollback
|
2024-01-27 21:20:46 -06:00
|
|
|
dependsOn:
|
|
|
|
- name: rook-ceph-cluster
|
|
|
|
namespace: rook-ceph
|
|
|
|
values:
|
|
|
|
controllers:
|
2024-03-19 17:38:08 -05:00
|
|
|
sonarr:
|
2024-01-27 21:20:46 -06:00
|
|
|
annotations:
|
|
|
|
reloader.stakater.com/auto: "true"
|
|
|
|
containers:
|
2024-03-19 17:38:08 -05:00
|
|
|
app:
|
2024-01-27 21:20:46 -06:00
|
|
|
image:
|
|
|
|
repository: ghcr.io/onedr0p/sonarr
|
2024-04-01 02:01:03 -05:00
|
|
|
tag: 4.0.3.1413@sha256:04d8e198752b67df3f95c46144b507f437e7669f0088e7d2bbedf0e762606655
|
2024-01-27 21:20:46 -06:00
|
|
|
env:
|
|
|
|
# Ref: https://github.com/Radarr/Radarr/issues/7030#issuecomment-1039689518
|
|
|
|
# Ref: https://github.com/dotnet/runtime/issues/9336
|
|
|
|
COMPlus_EnableDiagnostics: "0"
|
|
|
|
PUSHOVER_DEBUG: "false"
|
|
|
|
SONARR__AUTHENTICATION_METHOD: External
|
|
|
|
SONARR__AUTHENTICATION_REQUIRED: DisabledForLocalAddresses
|
|
|
|
SONARR__INSTANCE_NAME: Sonarr
|
|
|
|
SONARR__PORT: &port 80
|
|
|
|
SONARR__LOG_LEVEL: info
|
|
|
|
SONARR__THEME: dark
|
|
|
|
SONARR__POSTGRES_MAIN_DB: sonarr_main
|
|
|
|
SONARR__POSTGRES_LOG_DB: sonarr_logs
|
2024-01-27 21:24:35 -06:00
|
|
|
SONARR__POSTGRES_HOST:
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: "${APP}-pguser-${DB_USER}"
|
|
|
|
key: host
|
|
|
|
SONARR__POSTGRES_PORT: "5432"
|
|
|
|
SONARR__POSTGRES_USER:
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: "${APP}-pguser-${DB_USER}"
|
|
|
|
key: user
|
|
|
|
SONARR__POSTGRES_PASSWORD:
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: "${APP}-pguser-${DB_USER}"
|
|
|
|
key: password
|
2024-01-27 21:20:46 -06:00
|
|
|
TZ: America/Chicago
|
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
|
|
|
name: sonarr-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
|
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
capabilities: { drop: ["ALL"] }
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 10m
|
|
|
|
limits:
|
2024-02-28 00:18:08 -06:00
|
|
|
memory: 4Gi
|
2024-01-27 21:20:46 -06:00
|
|
|
pod:
|
|
|
|
securityContext:
|
|
|
|
runAsUser: 568
|
|
|
|
runAsGroup: 568
|
|
|
|
runAsNonRoot: true
|
|
|
|
fsGroup: 568
|
|
|
|
fsGroupChangePolicy: OnRootMismatch
|
|
|
|
supplementalGroups: [10000]
|
|
|
|
service:
|
2024-03-19 17:38:08 -05:00
|
|
|
app:
|
|
|
|
controller: sonarr
|
2024-01-27 21:20:46 -06:00
|
|
|
ports:
|
|
|
|
http:
|
|
|
|
port: *port
|
|
|
|
ingress:
|
|
|
|
main:
|
|
|
|
enabled: true
|
2024-01-27 21:29:01 -06:00
|
|
|
className: internal-nginx
|
2024-01-27 21:20:46 -06:00
|
|
|
hosts:
|
|
|
|
- host: &host "{{ .Release.Name }}.jahanson.tech"
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
service:
|
2024-03-19 17:38:08 -05:00
|
|
|
identifier: app
|
2024-01-27 21:20:46 -06:00
|
|
|
port: http
|
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- *host
|
|
|
|
persistence:
|
|
|
|
config:
|
|
|
|
enabled: true
|
|
|
|
existingClaim: sonarr
|
|
|
|
pushover-notify:
|
|
|
|
type: configMap
|
|
|
|
name: sonarr-configmap
|
|
|
|
defaultMode: 0775
|
|
|
|
globalMounts:
|
|
|
|
- path: /scripts/pushover-notify.sh
|
|
|
|
subPath: pushover-notify.sh
|
|
|
|
readOnly: true
|
|
|
|
tmp:
|
|
|
|
type: emptyDir
|
|
|
|
media:
|
|
|
|
type: nfs
|
|
|
|
server: 10.1.1.11
|
|
|
|
path: /volume1/Media
|
|
|
|
globalMounts:
|
|
|
|
- path: /data/nas-media
|
2024-01-27 22:58:33 -06:00
|
|
|
sting-media:
|
|
|
|
type: nfs
|
|
|
|
server: 10.1.1.12
|
|
|
|
path: /mnt/user/Media/
|
|
|
|
globalMounts:
|
|
|
|
- path: /data/sting-media
|