fix(nextcloud|forgejo): db backup

This commit is contained in:
nold 2024-01-16 14:21:09 +01:00
parent cf3b807482
commit f9f31b97a7
2 changed files with 29 additions and 28 deletions

View file

@ -3,19 +3,20 @@ kind: Cluster
metadata: metadata:
name: gitea-db name: gitea-db
namespace: gitea namespace: gitea
annotations:
cnpg.io/skipEmptyWalArchiveCheck: enabled
spec: spec:
instances: 1 instances: 1
imageName: ghcr.io/cloudnative-pg/postgresql:15 imageName: ghcr.io/cloudnative-pg/postgresql:15
bootstrap: bootstrap:
initdb: recovery:
database: app source: gitea-db
owner: app
backup: backup:
barmanObjectStore: barmanObjectStore:
destinationPath: "s3://gitea-db/" destinationPath: "s3://forgejo/"
endpointURL: "http://minio.minio.svc.cluster.local:9000" endpointURL: "http://s3-minio.s3.svc.cluster.local:9000"
s3Credentials: s3Credentials:
accessKeyId: accessKeyId:
name: bucket name: bucket
@ -45,8 +46,8 @@ spec:
externalClusters: externalClusters:
- name: gitea-db - name: gitea-db
barmanObjectStore: barmanObjectStore:
destinationPath: "s3://gitea-db/" destinationPath: "s3://forgejo/"
endpointURL: "http://minio.minio.svc.cluster.local:9000" endpointURL: "http://s3-minio.s3.svc.cluster.local:9000"
s3Credentials: s3Credentials:
accessKeyId: accessKeyId:
name: bucket name: bucket

View file

@ -10,25 +10,25 @@ spec:
bootstrap: bootstrap:
recovery: recovery:
source: nextcloud-db source: nextcloud-db
#
# backup: backup:
# barmanObjectStore: barmanObjectStore:
# destinationPath: "s3://nextcloud-db/" destinationPath: "s3://nextcloud-backup/"
# endpointURL: "http://minio.minio.svc.cluster.local:9000" endpointURL: "http://s3-minio.s3.svc.cluster.local:9000"
# s3Credentials: s3Credentials:
# accessKeyId: accessKeyId:
# name: bucket name: bucket
# key: accesskey key: accesskey
# secretAccessKey: secretAccessKey:
# name: bucket name: bucket
# key: secretkey key: secretkey
# wal: wal:
# compression: gzip compression: gzip
# #encryption: AES256 #encryption: AES256
# data: data:
# compression: gzip compression: gzip
# #encryption: AES256 #encryption: AES256
# retentionPolicy: "90d" retentionPolicy: "90d"
resources: resources:
requests: requests:
@ -44,8 +44,8 @@ spec:
externalClusters: externalClusters:
- name: nextcloud-db - name: nextcloud-db
barmanObjectStore: barmanObjectStore:
destinationPath: "s3://nextcloud-db/" destinationPath: "s3://nextcloud-backup/"
endpointURL: "http://minio.minio.svc.cluster.local:9000" endpointURL: "http://s3-minio.s3.svc.cluster.local:9000"
s3Credentials: s3Credentials:
accessKeyId: accessKeyId:
name: bucket name: bucket