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