-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmastodon-v16.yaml
66 lines (66 loc) · 1.76 KB
/
mastodon-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
---
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: mastodon-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: 50Gi
storageClass: rook-ceph-block
superuserSecret:
name: cloudnative-pg
postgresql:
parameters:
max_connections: "300"
shared_buffers: 512MB
monitoring:
enablePodMonitor: true
resources:
requests:
memory: "512Mi"
cpu: "1"
limits:
memory: "2Gi"
backup:
retentionPolicy: 14d
barmanObjectStore:
wal:
compression: bzip2
maxParallel: 4
destinationPath: s3://postgresql/
endpointURL: http://minio.kube-system.svc:9000
serverName: mastodon-v16
s3Credentials:
accessKeyId:
name: cloudnative-pg
key: MINIO_ACCESS_KEY
secretAccessKey:
name: cloudnative-pg
key: MINIO_SECRET_KEY
# bootstrap:
# recovery:
# source: mastodon-psql-backup
# externalClusters:
# - name: mastodon-psql-backup
# barmanObjectStore:
# wal:
# compression: bzip2
# maxParallel: 4
# destinationPath: s3://postgresql/
# endpointURL: http://minio.kube-system.svc:9000
# serverName: mastodon-psql-v16
# s3Credentials:
# accessKeyId:
# name: cloudnative-pg
# key: MINIO_ACCESS_KEY
# secretAccessKey:
# name: cloudnative-pg
# key: MINIO_SECRET_KEY