60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
apiVersion: postgres-operator.crunchydata.com/v1beta1
|
|
kind: PostgresCluster
|
|
metadata:
|
|
name: hippo
|
|
spec:
|
|
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-15.4-1
|
|
postgresVersion: 15
|
|
databaseInitSQL:
|
|
key: init.sql
|
|
name: init-sql
|
|
instances:
|
|
- name: instance1
|
|
replicas: 3
|
|
dataVolumeClaimSpec:
|
|
accessModes:
|
|
- "ReadWriteOnce"
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
backups:
|
|
pgbackrest:
|
|
manual:
|
|
repoName: repo1
|
|
options:
|
|
- --type=full
|
|
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.47-1
|
|
global:
|
|
repo1-retention-full: "14"
|
|
repo1-retention-full-type: time
|
|
repos:
|
|
- name: repo1
|
|
volume:
|
|
volumeClaimSpec:
|
|
accessModes:
|
|
- "ReadWriteOnce"
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
schedules:
|
|
full: "0 1 * * 0"
|
|
differential: "0 1 * * 1-6"
|
|
monitoring:
|
|
pgmonitor:
|
|
exporter:
|
|
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.4.3-0
|
|
|
|
users:
|
|
- name: authentik
|
|
databases:
|
|
- authentik
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: init-sql
|
|
data:
|
|
init.sql: |
|
|
\c authentik
|
|
GRANT CREATE ON SCHEMA public TO "authentik";
|