From ae3cb8ef4de15cbf1c3eaecb795596f8eaa78306 Mon Sep 17 00:00:00 2001 From: Hunor Csomortáni Date: Sep 24 2018 07:59:23 +0000 Subject: Define resource limits for the database container Otherwise PostgreSQL will run out of memory in projects where the default limits are lower than this. Signed-off-by: Hunor Csomortáni --- diff --git a/openshift/resultsdb-test-template.yaml b/openshift/resultsdb-test-template.yaml index b473813..2b5767d 100644 --- a/openshift/resultsdb-test-template.yaml +++ b/openshift/resultsdb-test-template.yaml @@ -137,6 +137,11 @@ objects: imagePullPolicy: Always ports: - containerPort: 5432 + protocol: TCP + resources: + limits: + memory: 512Mi + cpu: 0.4 readinessProbe: timeoutSeconds: 1 initialDelaySeconds: 5 @@ -259,6 +264,7 @@ objects: resources: limits: memory: 384Mi + cpu: 0.3 volumes: - name: config-volume secret: @@ -345,6 +351,7 @@ objects: resources: limits: memory: 384Mi + cpu: 0.3 volumes: - name: config-volume secret: