Move pgo backup bucket and reconfig peertube pg cluster

This commit is contained in:
Joseph Hanson 2024-01-04 10:39:55 -06:00
parent 9c31fe163b
commit 110781bea4
4 changed files with 8 additions and 6 deletions

View file

@ -5,3 +5,4 @@ kind: Kustomization
namespace: database namespace: database
resources: resources:
- ./helmrelease.yaml - ./helmrelease.yaml
- ./objectbucketclaim.yaml

View file

@ -3,8 +3,8 @@
apiVersion: objectbucket.io/v1alpha1 apiVersion: objectbucket.io/v1alpha1
kind: ObjectBucketClaim kind: ObjectBucketClaim
metadata: metadata:
name: pgo-peertube-backup-bucket-v1 name: crunchy-postgres
namespace: monitoring namespace: monitoring
spec: spec:
bucketName: pgo-peertube-backup-v1 bucketName: crunchy-postgres
storageClassName: ceph-bucket storageClassName: ceph-bucket

View file

@ -8,7 +8,6 @@ resources:
# - ./helmrelease.yaml # - ./helmrelease.yaml
# - ./ingress.yaml # - ./ingress.yaml
- ./postgresCluster.yaml - ./postgresCluster.yaml
- ./objectbucketclaim.yaml
- ./pvc.yaml - ./pvc.yaml
configMapGenerator: configMapGenerator:
- name: peertube-configmap - name: peertube-configmap

View file

@ -13,8 +13,8 @@ spec:
postgresql: postgresql:
synchronous_commit: "on" synchronous_commit: "on"
pg_hba: pg_hba:
- host peertube peertube 10.32.0.0/16 md5 - hostnossl all all 10.32.0.0/16 md5
- host all peertube 127.0.0.1 md5 - hostnossl all all all md5
# monitoring: # monitoring:
# pgmonitor: # pgmonitor:
# exporter: # exporter:
@ -35,6 +35,8 @@ spec:
databases: databases:
- peertube - peertube
options: "SUPERUSER" options: "SUPERUSER"
password:
type: AlphaNumeric
backups: backups:
pgbackrest: pgbackrest:
configuration: configuration:
@ -56,6 +58,6 @@ spec:
full: "0 1 * * 0" full: "0 1 * * 0"
differential: "0 1 * * 1-6" differential: "0 1 * * 1-6"
s3: s3:
bucket: "pgo-peertube-backup-v1" bucket: "crunchy-postgres"
endpoint: "rook-ceph-rgw-ceph-objectstore.rook-ceph.svc" endpoint: "rook-ceph-rgw-ceph-objectstore.rook-ceph.svc"
region: "" region: ""