Skip to content

Commit

Permalink
🧹 increase default resource requirements (#1079)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev authored Mar 28, 2024
1 parent 2fc0368 commit 2828233
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/utils/k8s/resources_requirements.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
},
}
Expand All @@ -29,21 +29,21 @@ var DefaultContainerScanningResources corev1.ResourceRequirements = corev1.Resou
},

Requests: corev1.ResourceList{
corev1.ResourceMemory: resource.MustParse("150M"),
corev1.ResourceMemory: resource.MustParse("250M"),
corev1.ResourceCPU: resource.MustParse("400m"),
},
}

// 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"),
},
}

Expand Down

0 comments on commit 2828233

Please sign in to comment.