⬆️ radarr app-template v2

This commit is contained in:
auricom
2023-11-03 17:28:46 +01:00
parent abea4e1c85
commit dcfc2a8d16
2 changed files with 66 additions and 61 deletions

View File

@@ -16,19 +16,19 @@ spec:
data: data:
# App # App
RADARR__API_KEY: "{{ .RADARR__API_KEY }}" RADARR__API_KEY: "{{ .RADARR__API_KEY }}"
# RADARR__POSTGRES_HOST: &dbHost postgres-rw.default.svc.cluster.local RADARR__POSTGRES_HOST: &dbHost postgres-rw.default.svc.cluster.local
# RADARR__POSTGRES_PORT: "5432" RADARR__POSTGRES_PORT: "5432"
# RADARR__POSTGRES_USER: &dbUser "{{ .RADARR__POSTGRES_USER }}" RADARR__POSTGRES_USER: &dbUser "{{ .RADARR__POSTGRES_USER }}"
# RADARR__POSTGRES_PASSWORD: &dbPass "{{ .RADARR__POSTGRES_PASSWORD }}" RADARR__POSTGRES_PASSWORD: &dbPass "{{ .RADARR__POSTGRES_PASSWORD }}"
# RADARR__POSTGRES_MAIN_DB: radarr_main RADARR__POSTGRES_MAIN_DB: radarr_main
# RADARR__POSTGRES_LOG_DB: radarr_log RADARR__POSTGRES_LOG_DB: radarr_log
PUSHOVER_API_TOKEN: "{{ .PUSHOVER_API_TOKEN }}" PUSHOVER_API_TOKEN: "{{ .PUSHOVER_API_TOKEN }}"
PUSHOVER_USER_KEY: "{{ .PUSHOVER_USER_KEY }}" PUSHOVER_USER_KEY: "{{ .PUSHOVER_USER_KEY }}"
# Postgres Init # Postgres Init
INIT_POSTGRES_DBNAME: radarr_main radarr_log INIT_POSTGRES_DBNAME: radarr_main radarr_log
INIT_POSTGRES_HOST: postgres-rw.default.svc.cluster.local INIT_POSTGRES_HOST: *dbHost
INIT_POSTGRES_USER: "{{ .RADARR__POSTGRES_USER }}" INIT_POSTGRES_USER: *dbUser
INIT_POSTGRES_PASS: "{{ .RADARR__POSTGRES_PASSWORD }}" INIT_POSTGRES_PASS: *dbPass
INIT_POSTGRES_SUPER_PASS: "{{ .POSTGRES_SUPER_PASS }}" INIT_POSTGRES_SUPER_PASS: "{{ .POSTGRES_SUPER_PASS }}"
dataFrom: dataFrom:
- extract: - extract:

View File

@@ -10,7 +10,7 @@ spec:
chart: chart:
spec: spec:
chart: app-template chart: app-template
version: 1.5.1 version: 2.0.3
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: bjw-s name: bjw-s
@@ -27,32 +27,48 @@ spec:
uninstall: uninstall:
keepHistory: false keepHistory: false
values: values:
initContainers: defaultPodOptions:
01-init-db: securityContext:
image: ghcr.io/auricom/postgres-init:15.4 runAsUser: 568
imagePullPolicy: IfNotPresent runAsGroup: 568
envFrom: &envFrom fsGroup: 568
- secretRef: fsGroupChangePolicy: OnRootMismatch
name: &secret radarr-secret controllers:
controller: main:
annotations: type: statefulset
configmap.reloader.stakater.com/reload: radarr-pushover annotations:
reloader.stakater.com/auto: "true" configmap.reloader.stakater.com/reload: radarr-pushover
image: reloader.stakater.com/auto: "true"
repository: ghcr.io/onedr0p/radarr-develop initContainers:
tag: 5.1.2.8207@sha256:7e026aae3fa4ac9d4066a0533fdbfaa35a0ccdc41033bc4f2460aa9401ecfb46 init-db:
env: image:
TZ: "${TIMEZONE}" repository: ghcr.io/auricom/postgres-init
PUSHOVER_APP_URL: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}" tag: 15.4@sha256:83e1abf06be5741bdfb8cb53fc03a1ade6e6b5ec7b92a8aac0c69ba5dc7e51f0
PUSHOVER_DEBUG: "false" pullPolicy: IfNotPresent
PUSHOVER_PRIORITY: "0" envFrom: &envFrom
RADARR__INSTANCE_NAME: Radarr - secretRef:
RADARR__PORT: &port 8080 name: radarr-secret
RADARR__APPLICATION_URL: "https://{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}" containers:
RADARR__LOG_LEVEL: info main:
envFrom: image:
- secretRef: repository: ghcr.io/onedr0p/radarr-develop
name: radarr-secret tag: 5.1.2.8207@sha256:7e026aae3fa4ac9d4066a0533fdbfaa35a0ccdc41033bc4f2460aa9401ecfb46
env:
TZ: "${TIMEZONE}"
PUSHOVER_APP_URL: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
PUSHOVER_DEBUG: "false"
PUSHOVER_PRIORITY: "0"
RADARR__INSTANCE_NAME: Radarr
RADARR__PORT: &port 8080
RADARR__APPLICATION_URL: "https://{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
RADARR__LOG_LEVEL: info
envFrom: *envFrom
resources:
requests:
cpu: 500m
memory: 500Mi
limits:
memory: 2000Mi
service: service:
main: main:
ports: ports:
@@ -61,57 +77,46 @@ spec:
ingress: ingress:
main: main:
enabled: true enabled: true
ingressClassName: "nginx" className: "nginx"
annotations: annotations:
auth.home.arpa/enabled: "true" auth.home.arpa/enabled: "true"
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_set_header Accept-Encoding "";
sub_filter '</head>' '<link rel="stylesheet" type="text/css" href="https://theme-park.${SECRET_CLUSTER_DOMAIN}/css/base/radarr/nord.css"></head>';
sub_filter_once on;
hajimari.io/icon: mdi:filmstrip hajimari.io/icon: mdi:filmstrip
hosts: hosts:
- host: *host - host: *host
paths: paths:
- path: / - path: /
pathType: Prefix service:
name: main
port: http
tls: tls:
- hosts: - hosts:
- *host - *host
podSecurityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: "OnRootMismatch"
supplementalGroups:
- 100
persistence: persistence:
config: config:
enabled: true enabled: true
existingClaim: radarr-config existingClaim: radarr-config
mountPath: /config globalMounts:
- path: /config
downloads: downloads:
enabled: true enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/downloads path: /mnt/storage/downloads
mountPath: /mnt/storage/downloads globalMounts:
- path: /mnt/storage/downloads
video: video:
enabled: true enabled: true
type: nfs type: nfs
server: "${LOCAL_LAN_TRUENAS}" server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/video path: /mnt/storage/video
mountPath: /mnt/storage/video globalMounts:
- path: /mnt/storage/video
scripts: scripts:
enabled: true enabled: true
type: configMap type: configMap
name: radarr-pushover name: radarr-pushover
subPath: pushover-notify.sh
mountPath: /scripts/pushover-notify.sh
defaultMode: 0775 defaultMode: 0775
readOnly: true globalMounts:
resources: - path: /scripts/pushover-notify.sh
requests: subPath: pushover-notify.sh
cpu: 500m readOnly: true
memory: 500Mi
limits:
memory: 2000Mi