From a2fd0e7fe5502912f458227f3f98d9a68073a98f Mon Sep 17 00:00:00 2001 From: Phil Elson Date: Thu, 29 Jul 2021 10:12:29 +0200 Subject: [PATCH] Update to reflect the resource limit changes in cara-webservice. --- app-config/openshift/deploymentconfig.yaml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/app-config/openshift/deploymentconfig.yaml b/app-config/openshift/deploymentconfig.yaml index 79b3611d..a473f6a6 100644 --- a/app-config/openshift/deploymentconfig.yaml +++ b/app-config/openshift/deploymentconfig.yaml @@ -207,7 +207,23 @@ - containerPort: 8080 protocol: TCP imagePullPolicy: Always - resources: {} + readinessProbe: + failureThreshold: 3 + httpGet: + path: /calculator-cern + port: 8080 + scheme: HTTP + initialDelaySeconds: 3 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 + resources: + limits: + cpu: '3' + memory: 3Gi + requests: + cpu: '1' + memory: 1Gi terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst @@ -229,7 +245,6 @@ selector: app: cara-webservice triggers: - - type: ConfigChange - type: ImageChange imageChangeParams: automatic: true