From 819dbd7b033c5370b89b84d7053e0b7a3b949995 Mon Sep 17 00:00:00 2001 From: Lukas Piwowarski Date: Tue, 8 Oct 2024 16:31:20 +0200 Subject: [PATCH] Increase ResourceMemory limit We are hitting an issue when pods are being killed in jobs because of OOM error. It seems like the ResourceMemory limit set with this PR [1] is not enough for the test operator pods. This patch increases the ResourceMemory limit to 8Gi. We should revisit this problem later and investigate whether the limit can not be lower and what exactly caused the OOM errors. [1] https://github.com/openstack-k8s-operators/test-operator/pull/205 --- pkg/util/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/common.go b/pkg/util/common.go index 23629d6f..348ab619 100644 --- a/pkg/util/common.go +++ b/pkg/util/common.go @@ -42,6 +42,6 @@ func GetSecurityContext( func GetResourceLimits() corev1.ResourceList { return corev1.ResourceList{ corev1.ResourceCPU: resource.MustParse("2000m"), - corev1.ResourceMemory: resource.MustParse("4Gi"), + corev1.ResourceMemory: resource.MustParse("8Gi"), } }