mirror of
https://github.com/zoriya/snow.git
synced 2026-08-05 13:57:26 +00:00
31 lines
652 B
YAML
31 lines
652 B
YAML
apiVersion: postgresql.cnpg.io/v1
|
|
kind: Cluster
|
|
metadata:
|
|
name: postgres-cluster
|
|
namespace: postgres
|
|
spec:
|
|
instances: 3
|
|
|
|
storage:
|
|
size: 10Gi
|
|
|
|
certificates:
|
|
serverCASecret: postgres-server-cert
|
|
serverTLSSecret: postgres-server-cert
|
|
clientCASecret: postgres-server-cert
|
|
replicationTLSSecret: postgres-replication-cert
|
|
postgresql:
|
|
pg_hba:
|
|
- hostssl all all all cert
|
|
|
|
backup:
|
|
retentionPolicy: 7d
|
|
|
|
# this is here because no `Role` crd exsists yet.
|
|
# see https://github.com/cloudnative-pg/cloudnative-pg/issues/5341
|
|
managed:
|
|
roles:
|
|
- name: authentik
|
|
login: true
|
|
disablePassword: true
|