-
Notifications
You must be signed in to change notification settings - Fork 3
/
cluster2.yaml
41 lines (35 loc) · 910 Bytes
/
cluster2.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
# Author : Sergio Romera
# Created : 10/03/2022
# Description : Cluster2 config file from cluster1 backups and WAL's.
apiVersion: postgresql.k8s.enterprisedb.io/v1
kind: Cluster
metadata:
name: cluster2
spec:
instances: 3
imageName: quay.io/enterprisedb/postgresql:14.1
superuserSecret:
name: superuser-secret
bootstrap:
recovery:
backup:
name: backup-test
# Log file replication
# /!\ Comment replica to start cluster in RW
replica:
enabled: true
source: cluster1
storage:
size: 1Gi
externalClusters:
- name: cluster1
barmanObjectStore:
destinationPath: "s3://cnp/"
endpointURL: "http://192.168.1.16:9000"
s3Credentials:
accessKeyId:
name: minio-creds
key: MINIO_ACCESS_KEY
secretAccessKey:
name: minio-creds
key: MINIO_SECRET_KEY