From ef714edc7c2325448e0c4660805aa56c0325e33f Mon Sep 17 00:00:00 2001 From: Johannes Wicovsky <> Date: Mon, 28 Nov 2022 12:08:56 +0100 Subject: [PATCH] add limits to dev-ocr-postgres --- config/default/templates/smardigo-ocr/deployment.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/default/templates/smardigo-ocr/deployment.yml b/config/default/templates/smardigo-ocr/deployment.yml index 6c81ccd..6978a54 100644 --- a/config/default/templates/smardigo-ocr/deployment.yml +++ b/config/default/templates/smardigo-ocr/deployment.yml @@ -15,6 +15,15 @@ spec: containers: - name: "{{ .Release.Name }}-smardigo-ocr-postgres" image: postgres:{{ .Values.smardigo.ocr.postgres.version }} + {{ if .Values.smardigo.ocr.with_limits }} + resources: + requests: + memory: "1G" + cpu: "1" + limits: + memory: "1G" + cpu: "1" + {{ end }} imagePullPolicy: Always env: - name: POSTGRES_DB