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
This commit is contained in:
Dario G. Mori
2026-04-17 13:38:36 +02:00
committed by GitHub
parent d415672247
commit c745a57f4b
2 changed files with 13 additions and 0 deletions

View File

@@ -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 }}

View File

@@ -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: