From 252723bb5499823f98375b147f87cd4216e02306 Mon Sep 17 00:00:00 2001 From: Tommy Date: Sun, 7 Apr 2024 10:35:02 +0200 Subject: [PATCH] feat(paperless-ngx): increase default resource limits and externalize them to the config --- charts/paperless-ngx/Chart.yaml | 2 +- charts/paperless-ngx/templates/deployment-server.yaml | 4 +--- charts/paperless-ngx/values.yaml | 8 ++++++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/charts/paperless-ngx/Chart.yaml b/charts/paperless-ngx/Chart.yaml index 9d127d2..542bffe 100644 --- a/charts/paperless-ngx/Chart.yaml +++ b/charts/paperless-ngx/Chart.yaml @@ -4,7 +4,7 @@ description: | document management system that transforms your physical documents into a searchable online archive appVersion: 2.7.0 type: application -version: 0.1.6 +version: 0.1.7 maintainers: - name: Tommy Skaug email: tommy@skaug.me diff --git a/charts/paperless-ngx/templates/deployment-server.yaml b/charts/paperless-ngx/templates/deployment-server.yaml index e479724..f725ced 100644 --- a/charts/paperless-ngx/templates/deployment-server.yaml +++ b/charts/paperless-ngx/templates/deployment-server.yaml @@ -35,9 +35,7 @@ spec: - secretRef: name: {{ .Values.envFromSecret }} resources: - limits: - memory: "128Mi" - cpu: "500m" + {{- toYaml .Values.resources | nindent 10 }} ports: - containerPort: 80 name: http diff --git a/charts/paperless-ngx/values.yaml b/charts/paperless-ngx/values.yaml index 0e7403c..cbfaea6 100644 --- a/charts/paperless-ngx/values.yaml +++ b/charts/paperless-ngx/values.yaml @@ -25,3 +25,11 @@ image: postgres: secretName: paperless-ngx-secret + +resources: + limits: + memory: "3Gi" + cpu: "1000m" +# requests: +# cpu: 100m +# memory: 250Mi