From 9e273458b5221fbbecd5a11843d8fe5ca380b463 Mon Sep 17 00:00:00 2001 From: JesseBot Date: Fri, 3 Nov 2023 08:59:22 +0100 Subject: [PATCH 1/2] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 4084861..068cf76 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,16 @@ # CloudNativePG Tenant Chart https://small-hack.github.io/cloudnative-pg-tenant-chart/ + +## TLDR + +```bash +# add the helm repo locally +helm repo add cnpg https://small-hack.github.io/cloudnative-pg-tenant-chart + +# get the values and edit them if needed +helm show values cnpg/cnpg-tenant > values.yaml + +# install the chart +helm install cnpg cnpg/cnpg-tenant --values values.yaml +``` From a0e2ec3c45515e3bf1787b0725a65f2b28f2d914 Mon Sep 17 00:00:00 2001 From: JesseBot Date: Fri, 3 Nov 2023 09:03:56 +0100 Subject: [PATCH 2/2] Update values.yaml - adding some basic comments --- charts/cloudnative-pg-tenant/values.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/cloudnative-pg-tenant/values.yaml b/charts/cloudnative-pg-tenant/values.yaml index 48c15ab..19d6ae8 100644 --- a/charts/cloudnative-pg-tenant/values.yaml +++ b/charts/cloudnative-pg-tenant/values.yaml @@ -7,15 +7,19 @@ superuserSecret: bootstrap: initdb: + # -- initial database to create database: app + # -- owner of the initial database that is created above owner: app secret: name: app-secret + # -- list of SQL commands to run as part of the init scripts postInitSQL: - CREATE ROLE friend backup: destinationPath: "backups" + # -- how long to keep backups for retentionPolicy: "30d" s3Credentials: accessKeyId: @@ -38,9 +42,9 @@ monitoring: enablePodMonitor: true postgresql: - pg_hba: + pg_hba: - hostnossl all all 0.0.0.0/0 reject - hostssl all all 0.0.0.0/0 cert clientcert=verify-full -storage: +storage: size: 1Gi