From 30c229f11841f821a502d2350f9288c1ecf85c59 Mon Sep 17 00:00:00 2001 From: Pasquale Congiusti Date: Tue, 2 Jul 2024 08:06:42 +0200 Subject: [PATCH] chore(install): reduce default resource footprint --- .../ROOT/pages/installation/advanced/resources.adoc | 8 ++++---- pkg/resources/config/manager/operator-deployment.yaml | 8 ++++---- script/Makefile | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/modules/ROOT/pages/installation/advanced/resources.adoc b/docs/modules/ROOT/pages/installation/advanced/resources.adoc index b6599ad252..6e470abdeb 100644 --- a/docs/modules/ROOT/pages/installation/advanced/resources.adoc +++ b/docs/modules/ROOT/pages/installation/advanced/resources.adoc @@ -30,11 +30,11 @@ The main Camel K Operator Pod contributor resources consumption is likely to be ``` resources: requests: - memory: "4Gi" - cpu: "1" + memory: "2Gi" + cpu: "500m" limits: - memory: "16Gi" - cpu: "4" + memory: "8Gi" + cpu: "2" ``` Note that if you plan to perform **native builds**, then the memory requirements may be increased significantly. Also, the CPU requirements are rather "soft", in the sense that it won't break the operator, but it'll perform slower in general. diff --git a/pkg/resources/config/manager/operator-deployment.yaml b/pkg/resources/config/manager/operator-deployment.yaml index f76ab614d5..b7ba60c14d 100644 --- a/pkg/resources/config/manager/operator-deployment.yaml +++ b/pkg/resources/config/manager/operator-deployment.yaml @@ -80,11 +80,11 @@ spec: periodSeconds: 10 resources: requests: - memory: "4Gi" - cpu: "1" + memory: "2Gi" + cpu: "500m" limits: - memory: "16Gi" - cpu: "4" + memory: "8Gi" + cpu: "2" securityContext: runAsNonRoot: true seccompProfile: diff --git a/script/Makefile b/script/Makefile index 82ed600ab8..ec6faa7fee 100644 --- a/script/Makefile +++ b/script/Makefile @@ -107,7 +107,7 @@ TEST_PREBUILD = build # Tests may run in parallel to each other. This count sets the amount of tests run in parallel. # (default value would be otherwise GOMAXPROCS) TEST_COMMON_PARALLEL_COUNT ?= 2 -TEST_ADVANCED_PARALLEL_COUNT ?= 2 +TEST_ADVANCED_PARALLEL_COUNT ?= 4 # OLM (Operator Lifecycle Manager and Operator Hub): uncomment to override operator settings at build time #GOLDFLAGS += -X github.com/apache/camel-k/v2/pkg/util/olm.DefaultOperatorName=camel-k-operator