diff --git a/apps/backup/postgresql/ghostfolio/kustomization.yaml b/apps/backup/postgresql/ghostfolio/kustomization.yaml index f7e2faa..7e3db4d 100644 --- a/apps/backup/postgresql/ghostfolio/kustomization.yaml +++ b/apps/backup/postgresql/ghostfolio/kustomization.yaml @@ -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}} diff --git a/apps/ghostfolio-postgresql/values.yaml b/apps/ghostfolio-postgresql/values.yaml deleted file mode 100644 index 9017ae3..0000000 --- a/apps/ghostfolio-postgresql/values.yaml +++ /dev/null @@ -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 diff --git a/apps/ghostfolio/values.yaml b/apps/ghostfolio/values.yaml index d721558..8744556 100644 --- a/apps/ghostfolio/values.yaml +++ b/apps/ghostfolio/values.yaml @@ -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 diff --git a/bootstrap/ghostfolio-postgresql.yaml b/bootstrap/ghostfolio-postgresql.yaml index 1d71c57..c31a196 100644 --- a/bootstrap/ghostfolio-postgresql.yaml +++ b/bootstrap/ghostfolio-postgresql.yaml @@ -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