mirror of
https://github.com/nold360/hive-apps
synced 2024-12-22 21:51:20 +00:00
change(nextcloud-db): postgres backup
This commit is contained in:
parent
031577536b
commit
d14a0b7fcf
1 changed files with 26 additions and 15 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue