--- # 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 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"