mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-07-06 17:52:21 +02:00
Replica clusters that use `pg_basebackup` as the bootstrap method and stream WAL from an object store were not getting the barman sidecar injected, causing WAL restore to fail silently. These clusters are now handled correctly. --------- Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
37 lines
772 B
YAML
37 lines
772 B
YAML
apiVersion: postgresql.cnpg.io/v1
|
|
kind: Cluster
|
|
metadata:
|
|
name: cluster-replica
|
|
spec:
|
|
instances: 3
|
|
bootstrap:
|
|
pg_basebackup:
|
|
source: source
|
|
replica:
|
|
enabled: true
|
|
source: source
|
|
externalClusters:
|
|
- name: source
|
|
connectionParameters:
|
|
host: cluster-example-rw.default.svc
|
|
user: streaming_replica
|
|
sslmode: verify-full
|
|
dbname: postgres
|
|
sslKey:
|
|
name: cluster-example-replication
|
|
key: tls.key
|
|
sslCert:
|
|
name: cluster-example-replication
|
|
key: tls.crt
|
|
sslRootCert:
|
|
name: cluster-example-ca
|
|
key: ca.crt
|
|
plugin:
|
|
name: barman-cloud.cloudnative-pg.io
|
|
parameters:
|
|
barmanObjectName: minio-store
|
|
serverName: cluster-example
|
|
storage:
|
|
size: 1Gi
|
|
|