From 656c722b52c835109c54af029e15c40391514778 Mon Sep 17 00:00:00 2001 From: Jordi Gil Date: Tue, 2 Jan 2024 11:11:47 -0500 Subject: [PATCH] Increase DI memory request and limits to 512Mi to avoid random OOMKills Signed-off-by: Jordi Gil --- controllers/platform/services/services.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/controllers/platform/services/services.go b/controllers/platform/services/services.go index 12b9ea07b..681ed4039 100644 --- a/controllers/platform/services/services.go +++ b/controllers/platform/services/services.go @@ -116,9 +116,13 @@ func (d DataIndex) GetEnvironmentVariables() []corev1.EnvVar { func (d DataIndex) GetPodResourceRequirements() corev1.ResourceRequirements { return corev1.ResourceRequirements{ + Requests: corev1.ResourceList{ + corev1.ResourceCPU: resource.MustParse("100m"), + corev1.ResourceMemory: resource.MustParse("512Mi"), + }, Limits: corev1.ResourceList{ - corev1.ResourceCPU: resource.MustParse("500m"), - corev1.ResourceMemory: resource.MustParse("1Gi"), + corev1.ResourceCPU: resource.MustParse("100m"), + corev1.ResourceMemory: resource.MustParse("512Mi"), }, } }