From 07692746212e68d6b05d8ce6cbb51584e0abadae Mon Sep 17 00:00:00 2001 From: pakotvan Date: Mon, 19 Feb 2024 14:02:31 +0100 Subject: [PATCH 1/2] increase requests/limits for postgresql pod --- ocp-templates/mpp/postgres.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ocp-templates/mpp/postgres.yaml b/ocp-templates/mpp/postgres.yaml index 5da84a97..1a27fda6 100644 --- a/ocp-templates/mpp/postgres.yaml +++ b/ocp-templates/mpp/postgres.yaml @@ -69,7 +69,11 @@ objects: timeoutSeconds: 10 resources: limits: - memory: 512Mi + memory: 6Gi + cpu: '1' + requests: + memory: 4Gi + cpu: '1' securityContext: capabilities: {} privileged: false From 9d7f76ebe9a51c8e9929e35c281a3d27201bb954 Mon Sep 17 00:00:00 2001 From: pakotvan Date: Mon, 19 Feb 2024 16:37:24 +0100 Subject: [PATCH 2/2] increase backend limits/requests --- ocp-templates/mpp/backend.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ocp-templates/mpp/backend.yaml b/ocp-templates/mpp/backend.yaml index d69ff80e..be1a89e0 100644 --- a/ocp-templates/mpp/backend.yaml +++ b/ocp-templates/mpp/backend.yaml @@ -127,7 +127,13 @@ objects: periodSeconds: 10 successThreshold: 1 timeoutSeconds: 1 - resources: {} + resources: + limits: + cpu: '1' + memory: 1Gi + requests: + cpu: 500m + memory: 512Mi terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst