This repository has been archived on 2024-02-11. You can view files and clone it, but cannot push or open issues or pull requests.
valinor/archive/fediverse/mastodon/app/cnpg/cluster.yaml

61 lines
1.6 KiB
YAML
Raw Normal View History

2023-08-13 12:13:53 -05:00
---
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: postgres
namespace: fediverse
annotations:
kyverno.io/ignore: "true"
spec:
instances: 3
imageName: ghcr.io/cloudnative-pg/postgresql:14.8-6
inheritedMetadata:
labels:
kube-image-keeper.enix.io/image-caching-policy: ignore
primaryUpdateStrategy: unsupervised
storage:
size: 60Gi
storageClass: ceph-block
superuserSecret:
name: cloudnative-pg-secret
2023-08-15 14:23:45 -05:00
bootstrap:
recovery:
2023-08-22 23:02:05 -05:00
source: &previousCluster postgres-v3
2023-08-13 12:13:53 -05:00
postgresql:
parameters:
max_connections: "600"
shared_buffers: 512MB
monitoring:
enablePodMonitor: true
backup:
retentionPolicy: 30d
barmanObjectStore:
wal:
compression: bzip2
maxParallel: 8
destinationPath: s3://valinor-cnpg/
2023-08-15 11:32:33 -05:00
endpointURL: https://${SECRET_CLOUDFLARE_ACCOUNT_ID}.r2.cloudflarestorage.com
2023-08-22 22:11:54 -05:00
serverName: valinor-postgres-v2
2023-08-13 12:13:53 -05:00
s3Credentials:
accessKeyId:
name: cloudnative-pg-secret
key: aws-access-key-id
secretAccessKey:
name: cloudnative-pg-secret
key: aws-secret-access-key
2023-08-15 09:14:32 -05:00
externalClusters:
2023-08-15 12:13:40 -05:00
- name: *previousCluster
2023-08-15 09:14:32 -05:00
barmanObjectStore:
wal:
compression: bzip2
2023-08-15 12:13:40 -05:00
maxParallel: 8
destinationPath: s3://valinor-cnpg/
endpointURL: https://${SECRET_CLOUDFLARE_ACCOUNT_ID}.r2.cloudflarestorage.com
s3Credentials:
accessKeyId:
name: cloudnative-pg-secret
key: aws-access-key-id
secretAccessKey:
name: cloudnative-pg-secret
key: aws-secret-access-key