mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
🗃️ prowlarr postgres
This commit is contained in:
@@ -12,7 +12,28 @@ spec:
|
||||
target:
|
||||
name: prowlarr-secret
|
||||
creationPolicy: Owner
|
||||
template:
|
||||
data:
|
||||
# App
|
||||
PROWLARR__API_KEY: "{{ .PROWLARR__API_KEY }}"
|
||||
PROWLARR__POSTGRES_HOST: &dbHost postgres-rw.default.svc.cluster.local
|
||||
PROWLARR__POSTGRES_PORT: "5432"
|
||||
PROWLARR__POSTGRES_USER: &dbUser "{{ .PROWLARR__POSTGRES_USER }}"
|
||||
PROWLARR__POSTGRES_PASSWORD: &dbPass "{{ .PROWLARR__POSTGRES_PASSWORD }}"
|
||||
PROWLARR__POSTGRES_MAIN_DB: prowlarr_main
|
||||
PROWLARR__POSTGRES_LOG_DB: prowlarr_log
|
||||
PUSHOVER_API_TOKEN: "{{ .PUSHOVER_API_TOKEN }}"
|
||||
PUSHOVER_USER_KEY: "{{ .PUSHOVER_USER_KEY }}"
|
||||
# Postgres Init
|
||||
INIT_POSTGRES_DBNAME: prowlarr_main prowlarr_log
|
||||
INIT_POSTGRES_HOST: *dbHost
|
||||
INIT_POSTGRES_USER: *dbUser
|
||||
INIT_POSTGRES_PASS: *dbPass
|
||||
INIT_POSTGRES_SUPER_PASS: "{{ .POSTGRES_SUPER_PASS }}"
|
||||
dataFrom:
|
||||
- extract:
|
||||
# PROWLARR__API_KEY
|
||||
key: cloudnative-pg
|
||||
- extract:
|
||||
key: pushover
|
||||
- extract:
|
||||
key: prowlarr
|
||||
|
@@ -27,6 +27,13 @@ spec:
|
||||
uninstall:
|
||||
keepHistory: false
|
||||
values:
|
||||
initContainers:
|
||||
01-init-db:
|
||||
image: ghcr.io/onedr0p/postgres-init:14.8
|
||||
imagePullPolicy: IfNotPresent
|
||||
envFrom: &envFrom
|
||||
- secretRef:
|
||||
name: &secret prowlarr-secret
|
||||
controller:
|
||||
annotations:
|
||||
reloader.stakater.com/auto: "true"
|
||||
@@ -38,9 +45,7 @@ spec:
|
||||
PROWLARR__INSTANCE_NAME: Prowlarr
|
||||
PROWLARR__PORT: &port 8080
|
||||
PROWLARR__LOG_LEVEL: info
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: prowlarr-secret
|
||||
envFrom: *envFrom
|
||||
service:
|
||||
main:
|
||||
ports:
|
||||
@@ -52,10 +57,10 @@ spec:
|
||||
ingressClassName: "nginx"
|
||||
annotations:
|
||||
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/prowlarr/nord.css"></head>';
|
||||
sub_filter_once on;
|
||||
# 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/prowlarr/nord.css"></head>';
|
||||
# sub_filter_once on;
|
||||
hajimari.io/icon: mdi:movie-search
|
||||
hosts:
|
||||
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
|
||||
@@ -74,8 +79,6 @@ spec:
|
||||
config:
|
||||
enabled: true
|
||||
existingClaim: prowlarr-config
|
||||
podAnnotations:
|
||||
secret.reloader.stakater.com/reload: *app
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
|
Reference in New Issue
Block a user