57 lines
1.6 KiB
YAML
57 lines
1.6 KiB
YAML
apiVersion: postgresql.cnpg.io/v1
|
|
kind: Cluster
|
|
metadata:
|
|
name: openproject
|
|
annotations:
|
|
cnpg.io/skipEmptyWalArchiveCheck: enabled
|
|
spec:
|
|
instances: 3
|
|
storage:
|
|
size: 1Gi
|
|
bootstrap:
|
|
recovery:
|
|
source: clusterBackup
|
|
#recoveryTarget:
|
|
# targetTime: "2025-02-12 21:00:00.00000+00"
|
|
backup:
|
|
barmanObjectStore:
|
|
destinationPath: "s3://openproject/backups"
|
|
endpointURL: "https://fsn1.your-objectstorage.com"
|
|
serverName: "db" # in case of restore change this
|
|
s3Credentials:
|
|
accessKeyId:
|
|
name: openproject-secret
|
|
key: OPENPROJECT_FOG_CREDENTIALS_AWS__ACCESS__KEY__ID
|
|
secretAccessKey:
|
|
name: openproject-secret
|
|
key: OPENPROJECT_FOG_CREDENTIALS_AWS__SECRET__ACCESS__KEY
|
|
wal:
|
|
compression: gzip
|
|
retentionPolicy: "30d"
|
|
externalClusters:
|
|
- name: clusterBackup
|
|
barmanObjectStore:
|
|
destinationPath: "s3://openproject/backups"
|
|
endpointURL: "https://fsn1.your-objectstorage.com"
|
|
serverName: "db"
|
|
s3Credentials:
|
|
accessKeyId:
|
|
name: openproject-secret
|
|
key: OPENPROJECT_FOG_CREDENTIALS_AWS__ACCESS__KEY__ID
|
|
secretAccessKey:
|
|
name: openproject-secret
|
|
key: OPENPROJECT_FOG_CREDENTIALS_AWS__SECRET__ACCESS__KEY
|
|
wal:
|
|
maxParallel: 8
|
|
compression: gzip
|
|
---
|
|
apiVersion: postgresql.cnpg.io/v1
|
|
kind: ScheduledBackup
|
|
metadata:
|
|
name: backup-openproject
|
|
spec:
|
|
immediate: true
|
|
schedule: "0 0 0 * * *"
|
|
backupOwnerReference: self
|
|
cluster:
|
|
name: openproject
|