From ff0fd27bda990d2d013c501951b7f436d7848b97 Mon Sep 17 00:00:00 2001 From: Elie Obadia Date: Mon, 30 Mar 2026 14:27:41 +0200 Subject: [PATCH 1/3] feat(helm): add CloudNative PG and Grafana PostgreSQL charts --- cloudnative-pg/Chart.yaml | 9 +++++++++ cloudnative-pg/values.yaml | 3 +++ grafana/grafana-postgres/Chart.yaml | 9 +++++++++ grafana/grafana-postgres/values.yaml | 20 ++++++++++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 cloudnative-pg/Chart.yaml create mode 100644 cloudnative-pg/values.yaml create mode 100644 grafana/grafana-postgres/Chart.yaml create mode 100644 grafana/grafana-postgres/values.yaml diff --git a/cloudnative-pg/Chart.yaml b/cloudnative-pg/Chart.yaml new file mode 100644 index 0000000..62df605 --- /dev/null +++ b/cloudnative-pg/Chart.yaml @@ -0,0 +1,9 @@ +apiVersion: v2 +name: cloudnative-pg +version: 0.23.0 +type: application +dependencies: + - name: cloudnative-pg + version: ~0.23.0 + repository: "https://cloudnative-pg.github.io/charts" + alias: app diff --git a/cloudnative-pg/values.yaml b/cloudnative-pg/values.yaml new file mode 100644 index 0000000..27f56a5 --- /dev/null +++ b/cloudnative-pg/values.yaml @@ -0,0 +1,3 @@ +app: + crds: + create: true diff --git a/grafana/grafana-postgres/Chart.yaml b/grafana/grafana-postgres/Chart.yaml new file mode 100644 index 0000000..3b06308 --- /dev/null +++ b/grafana/grafana-postgres/Chart.yaml @@ -0,0 +1,9 @@ +apiVersion: v2 +name: grafana-database +version: 0.6.0 +type: application +dependencies: + - name: cluster + version: ~0.6.0 + repository: "https://cloudnative-pg.github.io/charts" + alias: app diff --git a/grafana/grafana-postgres/values.yaml b/grafana/grafana-postgres/values.yaml new file mode 100644 index 0000000..547179d --- /dev/null +++ b/grafana/grafana-postgres/values.yaml @@ -0,0 +1,20 @@ +app: + cluster: + instances: 1 + storage: + size: 5Gi + resources: + limits: + memory: 512Mi + requests: + cpu: 100m + memory: 256Mi + postgresql: + parameters: + shared_buffers: "128MB" + max_connections: "100" + effective_cache_size: "256MB" + monitoring: + enabled: true + podMonitor: + enabled: true From ea4f6465ec7b142751aa07d7bcadc77da33c1bf1 Mon Sep 17 00:00:00 2001 From: elie-o-skyloud Date: Mon, 30 Mar 2026 15:35:32 +0200 Subject: [PATCH 2/3] Update values.yaml --- grafana/grafana-postgres/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grafana/grafana-postgres/values.yaml b/grafana/grafana-postgres/values.yaml index 547179d..70c421e 100644 --- a/grafana/grafana-postgres/values.yaml +++ b/grafana/grafana-postgres/values.yaml @@ -2,7 +2,7 @@ app: cluster: instances: 1 storage: - size: 5Gi + size: 2Gi resources: limits: memory: 512Mi From d93fc60d4a2f48a557d4bd46b45a654e78fb4cf1 Mon Sep 17 00:00:00 2001 From: Elie Obadia Date: Tue, 31 Mar 2026 14:18:14 +0200 Subject: [PATCH 3/3] feat(cloudnative-pg): configure namespace watching and optimize storage --- cloudnative-pg/values.yaml | 3 +++ grafana/grafana-postgres/values.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cloudnative-pg/values.yaml b/cloudnative-pg/values.yaml index 27f56a5..908d936 100644 --- a/cloudnative-pg/values.yaml +++ b/cloudnative-pg/values.yaml @@ -1,3 +1,6 @@ app: crds: create: true + config: + data: + WATCH_NAMESPACE: "system-grafana" diff --git a/grafana/grafana-postgres/values.yaml b/grafana/grafana-postgres/values.yaml index 70c421e..03f9f47 100644 --- a/grafana/grafana-postgres/values.yaml +++ b/grafana/grafana-postgres/values.yaml @@ -2,7 +2,7 @@ app: cluster: instances: 1 storage: - size: 2Gi + size: 1Gi resources: limits: memory: 512Mi