The personal finance app for everyone (by everyone)
Ruby
feat(helm): CNPG resource limits/requests (#1487)
Dario G. Moric745a57f4bd0
diff --git a/charts/sure/templates/cnpg-cluster.yaml b/charts/sure/templates/cnpg-cluster.yamlindex a19c789beb..2e694ea548 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.yamlindex d2b5da6d0c..7836b12fbe 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: