Add environment variables for Postgres backup configuration and update S3 endpoint and destination path
This commit is contained in:
parent
403096cde5
commit
816ed4ab03
@ -44,6 +44,9 @@ metadata:
|
|||||||
name: pg-cluster
|
name: pg-cluster
|
||||||
namespace: cnpg-system
|
namespace: cnpg-system
|
||||||
spec:
|
spec:
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: postgres-backup-bucket
|
||||||
instances: 2
|
instances: 2
|
||||||
priorityClassName: homelab-critical
|
priorityClassName: homelab-critical
|
||||||
resources:
|
resources:
|
||||||
@ -70,8 +73,8 @@ spec:
|
|||||||
storageClass: local-path
|
storageClass: local-path
|
||||||
backup:
|
backup:
|
||||||
barmanObjectStore:
|
barmanObjectStore:
|
||||||
endpointURL: http://rook-ceph-rgw-rgw-bulk.ceph.svc:80
|
endpointURL: http://${BUCKET_HOST}:${BUCKET_PORT}
|
||||||
destinationPath: "s3://backup-cnpg/"
|
destinationPath: "s3://${BUCKET_NAME}/"
|
||||||
s3Credentials:
|
s3Credentials:
|
||||||
accessKeyId:
|
accessKeyId:
|
||||||
name: postgres-backup-bucket
|
name: postgres-backup-bucket
|
||||||
@ -87,6 +90,8 @@ spec:
|
|||||||
managed:
|
managed:
|
||||||
roles:
|
roles:
|
||||||
- name: marco
|
- name: marco
|
||||||
|
connectionlimit: -1
|
||||||
|
ensure: present
|
||||||
login: true
|
login: true
|
||||||
superuser: true
|
superuser: true
|
||||||
passwordSecret:
|
passwordSecret:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user