From bd54eb60e7532fd30a1922ced03cabf9b56b8d24 Mon Sep 17 00:00:00 2001 From: rohow Date: Mon, 17 Feb 2025 15:11:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(cnpg):=20=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E5=A4=87=E4=BB=BD=E4=BF=9D=E7=95=99=E7=AD=96=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/infra/data/cloudnative-pg/cnpg-cluster-hk.yaml | 4 +++- apps/infra/data/cloudnative-pg/cnpg-cluster-sh.yaml | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/infra/data/cloudnative-pg/cnpg-cluster-hk.yaml b/apps/infra/data/cloudnative-pg/cnpg-cluster-hk.yaml index 2a9136e..fef710d 100644 --- a/apps/infra/data/cloudnative-pg/cnpg-cluster-hk.yaml +++ b/apps/infra/data/cloudnative-pg/cnpg-cluster-hk.yaml @@ -22,7 +22,7 @@ spec: parameters: archive_timeout: 30min backup: - retentionPolicy: 7d + retentionPolicy: "7d" barmanObjectStore: destinationPath: s3://devcm/cnpg/ endpointURL: https://obs.cn-east-3.myhuaweicloud.com @@ -33,6 +33,8 @@ spec: secretAccessKey: name: s3-devcm-hw key: ACCESS_SECRET_KEY + wal: + compression: gzip --- apiVersion: postgresql.cnpg.io/v1 diff --git a/apps/infra/data/cloudnative-pg/cnpg-cluster-sh.yaml b/apps/infra/data/cloudnative-pg/cnpg-cluster-sh.yaml index 4fb26bb..63a1b21 100644 --- a/apps/infra/data/cloudnative-pg/cnpg-cluster-sh.yaml +++ b/apps/infra/data/cloudnative-pg/cnpg-cluster-sh.yaml @@ -22,7 +22,7 @@ spec: parameters: archive_timeout: 30min backup: - retentionPolicy: 7d + retentionPolicy: "7d" barmanObjectStore: destinationPath: s3://devcm/cnpg/ endpointURL: https://obs.cn-east-3.myhuaweicloud.com @@ -33,6 +33,9 @@ spec: secretAccessKey: name: s3-devcm-hw key: ACCESS_SECRET_KEY + wal: + compression: gzip + --- apiVersion: postgresql.cnpg.io/v1