change(nextcloud-db): postgres backup

This commit is contained in:
nold 2022-12-14 10:14:27 +01:00
parent 031577536b
commit d14a0b7fcf

View file

@ -8,13 +8,8 @@ spec:
imageName: ghcr.io/cloudnative-pg/postgresql:15 imageName: ghcr.io/cloudnative-pg/postgresql:15
bootstrap: bootstrap:
initdb: recovery:
import: source: clusterBackup
type: microservice
databases:
- nextcloud
source:
externalCluster: nextcloud
backup: backup:
barmanObjectStore: barmanObjectStore:
@ -47,11 +42,27 @@ spec:
size: 10Gi size: 10Gi
externalClusters: externalClusters:
- name: nextcloud - name: clusterBackup
connectionParameters: barmanObjectStore:
host: nextcloud-postgresql.nextcloud.svc.cluster.local destinationPath: "s3://nextcloud-db/"
user: nextcloud endpointURL: "http://minio.minio.svc.cluster.local:9000"
dbname: nextcloud s3Credentials:
password: accessKeyId:
name: nextcloud-postgres name: bucket
key: postgresql-password key: accesskey
secretAccessKey:
name: bucket
key: secretkey
wal:
maxParallel: 8
---
apiVersion: postgresql.cnpg.io/v1
kind: ScheduledBackup
metadata:
name: nextcloud-db-backup
namespace: nextcloud
spec:
schedule: "0 0 0 * * *"
backupOwnerReference: self
cluster:
name: nextcloud-db