From 9a22d366253d83e4d82ed4ba2a3278f0f4b36fa5 Mon Sep 17 00:00:00 2001 From: Wade Barnes Date: Thu, 11 Jun 2020 13:53:19 -0700 Subject: [PATCH] Set build resources - Required for build to work. Default allocations are too low now. Signed-off-by: Wade Barnes --- .../edivorce-django-build.yaml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/openshift/templates/edivorce-django/edivorce-django-build.yaml b/openshift/templates/edivorce-django/edivorce-django-build.yaml index 3ed5551d..6c1b0576 100644 --- a/openshift/templates/edivorce-django/edivorce-django-build.yaml +++ b/openshift/templates/edivorce-django/edivorce-django-build.yaml @@ -44,6 +44,13 @@ objects: - type: ConfigChange postCommit: script: "./manage.py test" + resources: + limits: + cpu: ${CPU_LIMIT} + memory: ${MEMORY_LIMIT} + requests: + cpu: ${CPU_REQUEST} + memory: ${MEMORY_REQUEST} parameters: - name: NAME displayName: Name @@ -85,3 +92,24 @@ parameters: displayName: Custom PyPi Index URL description: The custom PyPi index URL value: '' +# =============================================================================== +- name: CPU_REQUEST + displayName: Resources CPU Request + description: The resources CPU request (in cores) for this build. + required: true + value: 10m +- name: CPU_LIMIT + displayName: Resources CPU Limit + description: The resources CPU limit (in cores) for this build. + required: true + value: 750m +- name: MEMORY_REQUEST + displayName: Resources Memory Request + description: The resources Memory request (in Mi, Gi, etc) for this build. + required: true + value: 10Mi +- name: MEMORY_LIMIT + displayName: Resources Memory Limit + description: The resources Memory limit (in Mi, Gi, etc) for this build. + required: true + value: 1000Mi \ No newline at end of file