Switch Paperless PostgreSQL to CloudNativePG

This commit is contained in:
feedc0de committed 2026-10-25 12:51:57 +01:00
1 parent cf3a5ada2b
commit 5cbb3d778d
3 files changed
+11 -16

No files matched your search

@@ -19,11 +19,11 @@ patches:
- name: pg-dump
env:
- {name: BACKUP_TARGET, value: paperless}
- {name: BACKUP_MODE, value: database}
- {name: PGHOST, value: postgresql}
- {name: BACKUP_MODE, value: all}
- {name: PGHOST, value: paperless-cnpg-rw}
- name: PGUSER
valueFrom: {secretKeyRef: {name: paperless-postgres, key: USERDB_USER}}
value: postgres
- name: PGDATABASE
valueFrom: {secretKeyRef: {name: paperless-postgres, key: USERDB_NAME}}
value: postgres
- name: PGPASSWORD
valueFrom: {secretKeyRef: {name: paperless-postgres, key: USERDB_PASSWORD}}
valueFrom: {secretKeyRef: {name: paperless-cnpg-superuser, key: password}}
+1
View File
@@ -97,6 +97,7 @@ resources:
- jellyfin.yaml
- paperless-project.yaml
- paperless-cnpg.yaml
- paperless-postgresql.yaml
- paperless-storage.yaml
- pdf-editor.yaml
- scanner.yaml
+5 -11
View File
@@ -5,21 +5,15 @@ metadata:
namespace: argocd
spec:
project: paperless
sources:
- repoURL: https://groundhog2k.github.io/helm-charts/
chart: postgres
targetRevision: 1.6.8
helm:
releaseName: postgresql
valueFiles: [$values/apps/paperless-postgresql/values.yaml]
- repoURL: https://code.brunner.ninja/feedc0de/homelab-gitops.git
targetRevision: main
ref: values
source:
repoURL: https://code.brunner.ninja/feedc0de/homelab-gitops.git
targetRevision: main
path: apps/paperless-postgresql/service
destination:
server: https://kubernetes.default.svc
namespace: paperless-ngx
syncPolicy:
automated:
enabled: true
prune: false
prune: true
selfHeal: true