postgres: migrate to backups via the barman plugin
This commit is contained in:
15
postgres/config/backup/objectstore.yaml
Normal file
15
postgres/config/backup/objectstore.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: barmancloud.cnpg.io/v1
|
||||
kind: ObjectStore
|
||||
metadata:
|
||||
name: truenas-s3
|
||||
spec:
|
||||
configuration:
|
||||
destinationPath: "s3://weyma-talos-shared-pgsql-new/"
|
||||
endpointURL: http://10.105.15.20:9000
|
||||
s3Credentials:
|
||||
accessKeyId:
|
||||
key: s3AccessKey
|
||||
name: s3-backup-creds
|
||||
secretAccessKey:
|
||||
key: s3SecretKey
|
||||
name: s3-backup-creds
|
||||
@@ -6,4 +6,7 @@ spec:
|
||||
schedule: "0 0 4 * * *"
|
||||
backupOwnerReference: self
|
||||
cluster:
|
||||
name: weyma-pgsql
|
||||
name: weyma-pgsql
|
||||
method: plugin
|
||||
pluginConfiguration:
|
||||
name: barman-cloud.cloudnative-pg.io
|
||||
@@ -11,17 +11,10 @@ spec:
|
||||
size: 50Gi
|
||||
storageClass: rook-ceph-block
|
||||
|
||||
backup:
|
||||
barmanObjectStore:
|
||||
destinationPath: "s3://weyma-talos-shared-pgsql-new/"
|
||||
endpointURL: http://10.105.15.20:9000
|
||||
s3Credentials:
|
||||
accessKeyId:
|
||||
key: s3AccessKey
|
||||
name: s3-backup-creds
|
||||
secretAccessKey:
|
||||
key: s3SecretKey
|
||||
name: s3-backup-creds
|
||||
plugins:
|
||||
- name: barman-cloud.cloudnative-pg.io
|
||||
parameters:
|
||||
barmanObjectName: truenas-s3
|
||||
|
||||
inheritedMetadata:
|
||||
labels:
|
||||
|
||||
Reference in New Issue
Block a user