50 lines
1.1 KiB
YAML
50 lines
1.1 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:
|
|
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.47-1
|
|
repos:
|
|
- name: repo1
|
|
volume:
|
|
volumeClaimSpec:
|
|
accessModes:
|
|
- "ReadWriteOnce"
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
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";
|