This repository has been archived on 2024-02-11. You can view files and clone it, but cannot push or open issues or pull requests.
valinor/archive/fediverse/peertube/app/postgresCluster.yaml

62 lines
1.6 KiB
YAML
Raw Normal View History

2023-10-26 11:35:05 -05:00
---
2023-10-31 10:07:44 -05:00
# yaml-language-server: $schema=https://ks.hsn.dev/postgres-operator.crunchydata.com/postgrescluster_v1beta1.json
2023-10-26 11:35:05 -05:00
apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
name: peertube
namespace: security
spec:
postgresVersion: 15
patroni:
dynamicConfiguration:
synchronous_mode: true
postgresql:
synchronous_commit: "on"
pg_hba:
- host peertube peertube 10.244.0.0/16 md5
2023-11-06 19:54:37 -06:00
- host all peertube 127.0.0.1 md5
2023-11-07 13:06:06 -06:00
# monitoring:
# pgmonitor:
# exporter:
# image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.4.3-0
2023-10-26 11:35:05 -05:00
instances:
- name: postgres
replicas: 2
dataVolumeClaimSpec:
storageClassName: ceph-block
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
users:
- name: peertube
databases:
- peertube
options: "SUPERUSER"
backups:
pgbackrest:
configuration:
- secret:
name: pgo-s3-creds
global:
archive-push-queue-max: 4GiB
repo1-retention-full: "14"
repo1-retention-full-type: time
repo1-path: /peertube/repo1
repo1-s3-uri-style: path
manual:
repoName: repo1
options:
- --type=full
repos:
- name: repo1
schedules:
full: "0 1 * * 0"
differential: "0 1 * * 1-6"
s3:
bucket: "crunchy-postgres"
endpoint: "erebor.hsn.dev"
region: "us-east-1"