Cut Ghostfolio PostgreSQL over to CloudNativePG
This commit is contained in:
1 parent
e30d48e417
commit
3366537d3f
4 files changed
+11
-33
No files matched your search
@@ -19,6 +19,9 @@ patches:
|
||||
- name: pg-dump
|
||||
env:
|
||||
- {name: BACKUP_TARGET, value: ghostfolio}
|
||||
- {name: PGHOST, value: ghostfolio-postgresql}
|
||||
- {name: PGHOST, value: ghostfolio-cnpg18-rw}
|
||||
- {name: PGUSER, value: ghostfolio}
|
||||
- {name: PGDATABASE, value: ghostfolio}
|
||||
- {name: BACKUP_MODE, value: database}
|
||||
- name: PGPASSWORD
|
||||
valueFrom: {secretKeyRef: {name: ghostfolio-postgres, key: postgres-password}}
|
||||
valueFrom: {secretKeyRef: {name: ghostfolio-postgres, key: password}}
|
||||
@@ -1,16 +0,0 @@
|
||||
auth:
|
||||
username: ghostfolio
|
||||
database: ghostfolio
|
||||
existingSecret: ghostfolio-postgres
|
||||
secretKeys:
|
||||
adminPasswordKey: postgres-password
|
||||
userPasswordKey: password
|
||||
|
||||
primary:
|
||||
persistence:
|
||||
storageClass: rook-ceph-block
|
||||
size: 8Gi
|
||||
persistentVolumeClaimRetentionPolicy:
|
||||
enabled: true
|
||||
whenDeleted: Retain
|
||||
whenScaled: Retain
|
||||
@@ -54,7 +54,7 @@ postgresql:
|
||||
enabled: false
|
||||
|
||||
externalPostgresql:
|
||||
host: ghostfolio-postgresql.ghostfolio.svc.cluster.local
|
||||
host: ghostfolio-cnpg18-rw.ghostfolio.svc.cluster.local
|
||||
port: 5432
|
||||
auth:
|
||||
username: ghostfolio
|
||||
|
||||
@@ -7,26 +7,17 @@ metadata:
|
||||
argocd.argoproj.io/sync-wave: "0"
|
||||
spec:
|
||||
project: ghostfolio
|
||||
sources:
|
||||
- repoURL: registry-1.docker.io/bitnamicharts
|
||||
chart: postgresql
|
||||
targetRevision: 18.6.2
|
||||
helm:
|
||||
releaseName: ghostfolio-postgresql
|
||||
valueFiles: [$values/apps/ghostfolio-postgresql/values.yaml]
|
||||
- repoURL: https://code.brunner.ninja/feedc0de/homelab-gitops.git
|
||||
targetRevision: main
|
||||
ref: values
|
||||
- repoURL: https://code.brunner.ninja/feedc0de/homelab-gitops.git
|
||||
targetRevision: main
|
||||
path: apps/ghostfolio-postgresql/cluster
|
||||
source:
|
||||
repoURL: https://code.brunner.ninja/feedc0de/homelab-gitops.git
|
||||
targetRevision: main
|
||||
path: apps/ghostfolio-postgresql/cluster
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: ghostfolio
|
||||
syncPolicy:
|
||||
automated:
|
||||
enabled: true
|
||||
prune: false
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
Reference in new issue
Block a user