mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
---
|
|
apiVersion: postgresql.cnpg.io/v1
|
|
kind: Cluster
|
|
metadata:
|
|
name: postgres
|
|
namespace: default
|
|
spec:
|
|
instances: 3
|
|
imageName: ghcr.io/cloudnative-pg/postgresql:15.5-11
|
|
primaryUpdateStrategy: unsupervised
|
|
enableSuperuserAccess: true
|
|
storage:
|
|
size: 50Gi
|
|
storageClass: rook-ceph-block
|
|
superuserSecret:
|
|
name: cloudnative-pg-secret
|
|
monitoring:
|
|
enablePodMonitor: true
|
|
backup:
|
|
retentionPolicy: 7d
|
|
barmanObjectStore:
|
|
wal:
|
|
compression: bzip2
|
|
maxParallel: 8
|
|
destinationPath: s3://postgresql/
|
|
endpointURL: https://truenas.${SECRET_DOMAIN}:51515
|
|
serverName: postgres-v8
|
|
s3Credentials:
|
|
accessKeyId:
|
|
name: cloudnative-pg-secret
|
|
key: aws-access-key-id
|
|
secretAccessKey:
|
|
name: cloudnative-pg-secret
|
|
key: aws-secret-access-key
|
|
# bootstrap:
|
|
# recovery:
|
|
# source: postgres-v6
|
|
# externalClusters:
|
|
# - name: postgres-v6
|
|
# barmanObjectStore:
|
|
# destinationPath: s3://postgresql/
|
|
# endpointURL: https://truenas.${SECRET_DOMAIN}:51515
|
|
# s3Credentials:
|
|
# accessKeyId:
|
|
# name: postgres-minio
|
|
# key: MINIO_ACCESS_KEY
|
|
# secretAccessKey:
|
|
# name: postgres-minio
|
|
# key: MINIO_SECRET_KEY
|
|
# wal:
|
|
# maxParallel: 8
|