ce7cb702218693d08ea6d83464d2457c9250027c
This commit is contained in:
commit
34c5f8963c
1 changed files with 145336 additions and 0 deletions
44
vendor/platform/postgres/config/backup.yaml
vendored
Normal file
44
vendor/platform/postgres/config/backup.yaml
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
apiVersion: barmancloud.cnpg.io/v1
|
||||
kind: ObjectStore
|
||||
metadata:
|
||||
name: pg-backup
|
||||
namespace: postgres
|
||||
spec:
|
||||
retentionPolicy: "7d"
|
||||
configuration:
|
||||
destinationPath: s3://pg-backup/
|
||||
endpointURL: https://s3.quorate.internal
|
||||
endpointCA:
|
||||
name: pg-backup
|
||||
key: ca.crt
|
||||
s3Credentials:
|
||||
accessKeyId:
|
||||
name: pg-backup
|
||||
key: ACCESS_KEY_ID
|
||||
secretAccessKey:
|
||||
name: pg-backup
|
||||
key: ACCESS_SECRET_KEY
|
||||
wal:
|
||||
compression: gzip
|
||||
instanceSidecarConfiguration:
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
memory: 512Mi
|
||||
---
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: ScheduledBackup
|
||||
metadata:
|
||||
name: main-weekly
|
||||
namespace: postgres
|
||||
spec:
|
||||
schedule: "0 0 6 * * 1"
|
||||
backupOwnerReference: self
|
||||
cluster:
|
||||
name: main
|
||||
target: prefer-standby
|
||||
method: plugin
|
||||
pluginConfiguration:
|
||||
name: barman-cloud.cloudnative-pg.io
|
||||
Loading…
Reference in a new issue