From 61768facb00b9608e3bbd645744229cd326b8fca Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Sun, 27 Oct 2024 03:37:30 -0300 Subject: [PATCH] Better Database Replication --- template/postgres/cn-cluster.template.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template/postgres/cn-cluster.template.yaml b/template/postgres/cn-cluster.template.yaml index db88994..74312f2 100644 --- a/template/postgres/cn-cluster.template.yaml +++ b/template/postgres/cn-cluster.template.yaml @@ -4,7 +4,7 @@ metadata: name: postgres-cn-cluster namespace: ${KUBE_NAMESPACE} spec: - instances: 1 + instances: 3 primaryUpdateStrategy: unsupervised imageName: ghcr.io/cloudnative-pg/postgresql:14.10-18 @@ -21,7 +21,7 @@ spec: affinity: nodeSelector: - ${MASTER_NODE_LABEL} + ${WORKER_NODE_LABEL} monitoring: enablePodMonitor: true