44 lines
932 B
YAML
44 lines
932 B
YAML
|
|
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
|