61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://ks.hsn.dev/postgres-operator.crunchydata.com/postgrescluster_v1beta1.json
|
|
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
|
|
- host all peertube 127.0.0.1 md5
|
|
# monitoring:
|
|
# pgmonitor:
|
|
# exporter:
|
|
# image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.4.3-0
|
|
|
|
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"
|