From c745a57f4bd02a12f1be47b86884e3eb0309e1c3 Mon Sep 17 00:00:00 2001 From: "Dario G. Mori" <91892789+dariogmori@users.noreply.github.com> Date: Fri, 17 Apr 2026 13:38:36 +0200 Subject: [PATCH] feat(helm): CNPG resource limits/requests (#1487) * feat(helm): resource limits and requests for cnpg cluster * feat(helm): added commented example resource request and limits in values.yaml --- charts/sure/templates/cnpg-cluster.yaml | 4 ++++ charts/sure/values.yaml | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/charts/sure/templates/cnpg-cluster.yaml b/charts/sure/templates/cnpg-cluster.yaml index a19c789be..2e694ea54 100644 --- a/charts/sure/templates/cnpg-cluster.yaml +++ b/charts/sure/templates/cnpg-cluster.yaml @@ -74,6 +74,10 @@ spec: tolerations: {{- toYaml . | nindent 4 }} {{- end }} + {{- with .Values.cnpg.cluster.resources }} + resources: + {{- toYaml . | nindent 4 }} + {{- end }} {{- with .Values.cnpg.cluster.topologySpreadConstraints }} topologySpreadConstraints: {{- toYaml . | nindent 4 }} diff --git a/charts/sure/values.yaml b/charts/sure/values.yaml index d2b5da6d0..7836b12fb 100644 --- a/charts/sure/values.yaml +++ b/charts/sure/values.yaml @@ -110,6 +110,15 @@ cnpg: # are passed through for CNPG to validate. backup: {} + # NOTE: These are example values for resource limits and requests, adapt them to your cluster and workload needs. CNPG can run on very small resource requests, but you may want to increase limits for production workloads. + # resources: + # requests: + # cpu: 100m + # memory: 256Mi + # limits: + # cpu: 200m + # memory: 512Mi + # # Optional CNPG plugin configuration (rendered as `.spec.plugins` on the Cluster CR) # Example (barman-cloud plugin as WAL archiver): # plugins: