-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdendrite-v16.yaml
69 lines (69 loc) · 1.81 KB
/
dendrite-v16.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: dendrite-psql-v16
namespace: default
annotations:
kyverno.io/ignore: "true"
spec:
# using only 1 replica: very difficult to drain the node where postgres is running
# using more than 1 replica: write amplification issues when leveraging replicated storage (e.g. ceph)
instances: 2
imageName: ghcr.io/cloudnative-pg/postgresql:16.4
primaryUpdateStrategy: unsupervised
storage:
size: 25Gi
storageClass: rook-ceph-block
superuserSecret:
name: cloudnative-pg
postgresql:
parameters:
max_connections: "300"
shared_buffers: 512MB
monitoring:
enablePodMonitor: true
resources:
requests:
memory: "512Mi"
limits:
memory: "2Gi"
affinity:
tolerations:
- key: "arm"
operator: "Exists"
backup:
retentionPolicy: 30d
barmanObjectStore:
wal:
compression: bzip2
maxParallel: 4
destinationPath: s3://postgresql/
endpointURL: http://minio.kube-system.svc:9000
serverName: dendrite-v16
s3Credentials:
accessKeyId:
name: cloudnative-pg
key: MINIO_ACCESS_KEY
secretAccessKey:
name: cloudnative-pg
key: MINIO_SECRET_KEY
# bootstrap:
# recovery:
# source: dendrite-psql-backup
# externalClusters:
# - name: dendrite-psql-backup
# barmanObjectStore:
# wal:
# compression: bzip2
# maxParallel: 4
# destinationPath: s3://postgresql/
# endpointURL: http://minio.kube-system.svc:9000
# serverName: dendrite-v16
# s3Credentials:
# accessKeyId:
# name: cloudnative-pg
# key: MINIO_ACCESS_KEY
# secretAccessKey:
# name: cloudnative-pg
# key: MINIO_SECRET_KEY