Skip to content

Commit

Permalink
fix(kyak): use postgres
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Witlin <[email protected]>
  • Loading branch information
coolguy1771 committed Dec 8, 2024
1 parent fcb8073 commit 8cc914c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
16 changes: 15 additions & 1 deletion kubernetes/kyak/apps/media/bazarr/app/externalsecret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@ spec:
engineVersion: v2
data:
JELLYFIN_TOKEN: "{{ .JELLYFIN_TOKEN }}"
POSTGRES_HOST: &dbHost postgres16-rw.database.svc.cluster.local
POSTGRES_PORT: "5432"
POSTGRES_DATABASE: &dbName bazarr
POSTGRES_USERNAME: &dbUser "{{ .BAZARR_POSTGRES_USER }}"
POSTGRES_PASSWORD: &dbPass "{{ .BAZARR_POSTGRES_PASSWORD }}"
INIT_POSTGRES_DBNAME: *dbName
INIT_POSTGRES_HOST: *dbHost
INIT_POSTGRES_USER: *dbUser
INIT_POSTGRES_PASS: *dbPass
INIT_POSTGRES_SUPER_PASS: "{{ .POSTGRES_SUPER_PASS }}"
dataFrom:
- extract:
key: jellyfin
key: cloudnative-pg
- extract:
key: jellyfin
- extract:
key: bazarr
10 changes: 10 additions & 0 deletions kubernetes/kyak/apps/media/bazarr/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,26 @@ spec:
bazarr:
annotations:
reloader.stakater.com/auto: "true"
initContainers:
init-db:
image:
repository: ghcr.io/onedr0p/postgres-init
tag: 16
envFrom: &envFrom
- secretRef:
name: bazarr-secret
containers:
app:
image:
repository: ghcr.io/onedr0p/bazarr
tag: 1.4.5@sha256:c0bf91443c32f3978777b4ddd2732908f51b157bbe00cd3259b23f7716bb4af7
env:
TZ: America/New_York
POSTGRES_ENABLED: "true"
envFrom:
- secretRef:
name: bazarr-secret

probes:
liveness: &probes
enabled: true
Expand Down

0 comments on commit 8cc914c

Please sign in to comment.