mirror of
https://github.com/zoriya/snow.git
synced 2025-12-05 23:06:23 +00:00
46 lines
992 B
YAML
46 lines
992 B
YAML
apiVersion: postgresql.cnpg.io/v1
|
|
kind: Cluster
|
|
metadata:
|
|
name: postgres-cluster
|
|
namespace: postgres
|
|
spec:
|
|
instances: 3
|
|
|
|
storage:
|
|
size: 10Gi
|
|
|
|
backup:
|
|
retentionPolicy: 7d
|
|
|
|
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
|
|
|
|
# this is needed for immich
|
|
shared_preload_libraries:
|
|
- "vchord.so"
|
|
imageName: ghcr.io/tensorchord/cloudnative-vectorchord:17.5-0.3.0
|
|
|
|
|
|
# this is here because no `Role` crd exists yet.
|
|
# see https://github.com/cloudnative-pg/cloudnative-pg/issues/5341
|
|
managed:
|
|
roles:
|
|
- name: authentik
|
|
login: true
|
|
disablePassword: true
|
|
- name: atuin
|
|
login: true
|
|
disablePassword: true
|
|
- name: gitea
|
|
login: true
|
|
disablePassword: true
|
|
- name: immich
|
|
login: true
|
|
disablePassword: true
|