From 2828233248ac629c687cd28ad1c1f4c4f38caa0a Mon Sep 17 00:00:00 2001 From: Ivan Milchev Date: Thu, 28 Mar 2024 11:24:38 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20increase=20default=20resource=20?= =?UTF-8?q?requirements=20(#1079)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ivan Milchev --- pkg/utils/k8s/resources_requirements.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkg/utils/k8s/resources_requirements.go b/pkg/utils/k8s/resources_requirements.go index eb88bb396..07336f405 100644 --- a/pkg/utils/k8s/resources_requirements.go +++ b/pkg/utils/k8s/resources_requirements.go @@ -11,12 +11,12 @@ import ( // DefaultCnspecResources for cnspec container var DefaultCnspecResources corev1.ResourceRequirements = corev1.ResourceRequirements{ Limits: corev1.ResourceList{ - corev1.ResourceMemory: resource.MustParse("400M"), - corev1.ResourceCPU: resource.MustParse("600m"), + corev1.ResourceMemory: resource.MustParse("450M"), + corev1.ResourceCPU: resource.MustParse("1"), }, Requests: corev1.ResourceList{ - corev1.ResourceMemory: resource.MustParse("150M"), + corev1.ResourceMemory: resource.MustParse("250M"), corev1.ResourceCPU: resource.MustParse("300m"), }, } @@ -29,7 +29,7 @@ var DefaultContainerScanningResources corev1.ResourceRequirements = corev1.Resou }, Requests: corev1.ResourceList{ - corev1.ResourceMemory: resource.MustParse("150M"), + corev1.ResourceMemory: resource.MustParse("250M"), corev1.ResourceCPU: resource.MustParse("400m"), }, } @@ -37,13 +37,13 @@ var DefaultContainerScanningResources corev1.ResourceRequirements = corev1.Resou // DefaultNodeScanningResources for cnspec container when scanning nodes var DefaultNodeScanningResources corev1.ResourceRequirements = corev1.ResourceRequirements{ Limits: corev1.ResourceList{ - corev1.ResourceMemory: resource.MustParse("160M"), - corev1.ResourceCPU: resource.MustParse("200m"), + corev1.ResourceMemory: resource.MustParse("250M"), + corev1.ResourceCPU: resource.MustParse("300m"), }, Requests: corev1.ResourceList{ - corev1.ResourceMemory: resource.MustParse("100M"), - corev1.ResourceCPU: resource.MustParse("50m"), + corev1.ResourceMemory: resource.MustParse("150M"), + corev1.ResourceCPU: resource.MustParse("100m"), }, }