From ec885ac9cbd19d88c9d4c6cfdd5c7147d3930f46 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sat, 21 Dec 2024 21:42:02 -0600 Subject: [PATCH] replica pg-17 --- .../applications/jellyplist/values.yaml | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/clusters/cl01tl/applications/jellyplist/values.yaml b/clusters/cl01tl/applications/jellyplist/values.yaml index 956968c60..d85a21485 100644 --- a/clusters/cl01tl/applications/jellyplist/values.yaml +++ b/clusters/cl01tl/applications/jellyplist/values.yaml @@ -139,7 +139,7 @@ postgres-16-cluster: endpointCredentials: jellyplist-postgresql-16-cluster-backup-secret backupIndex: 1 postgres-17-cluster: - mode: standalone + mode: replica cluster: image: repository: ghcr.io/cloudnative-pg/postgresql @@ -150,11 +150,21 @@ postgres-17-cluster: storageClass: local-path monitoring: enabled: true - initdb: - postInitSQL: - - CREATE DATABASE "jellyplist" OWNER "app"; + replica: + importType: monolith + importDatabases: + - app + - jellyplist + externalCluster: + connectionParameters: + host: jellyplist-postgresql-16-cluster-rw + user: app + dbname: jellyplist + password: + name: jellyplist-postgresql-16-cluster-app + key: password backup: - enabled: true + enabled: false endpointURL: https://nyc3.digitaloceanspaces.com destinationPath: s3://postgres-backups-ce540ddf106d186bbddca68a/cl01tl/jellyplist/jellyplist-postgresql-17-cluster endpointCredentials: jellyplist-postgresql-17-cluster-backup-secret