Synapse/manifests/database.yaml

53 lines
937 B
YAML
Raw Normal View History

2023-07-29 14:13:54 +00:00
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: synapse-db
namespace: synapse
spec:
instances: 3
2023-07-29 14:13:54 +00:00
storage:
size: 5Gi
storageClass: local-path
2023-07-29 14:13:54 +00:00
bootstrap:
initdb:
database: synapse
owner: synapse
secret:
name: synapse-db
postgresql:
pg_hba:
- host all all all md5
backup:
barmanObjectStore:
destinationPath: "s3://halis/cloudnativepg"
endpointURL: https://s3.halia.dev
s3Credentials:
accessKeyId:
name: s3-secret
key: AWS_ACCESS_KEY_ID
secretAccessKey:
name: s3-secret
key: AWS_SECRET_ACCESS_KEY
region:
name: s3-secret
key: AWS_REGION
wal:
compression: gzip
maxParallel: 8
2023-07-29 14:13:54 +00:00
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 500m
memory: 500Mi
2024-12-18 13:21:41 +00:00
monitoring:
enablePodMonitor: true