From 8475b04da1bca3e8c62046fb6c8faf348c65b677 Mon Sep 17 00:00:00 2001 From: Mykola Morhun Date: Fri, 15 Nov 2024 15:53:47 +0200 Subject: [PATCH] Tune Build Service and Image Controller resources to prevent often eviction (#4914) --- .../production/base/kustomization.yaml | 3 +++ .../base/manager_resources_patch.yaml | 17 +++++++++++++++++ .../staging/base/kustomization.yaml | 3 +++ .../staging/base/manager_resources_patch.yaml | 17 +++++++++++++++++ .../base/manager_resources_patch.yaml | 4 ++-- .../staging/base/manager_resources_patch.yaml | 4 ++-- 6 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 components/build-service/production/base/manager_resources_patch.yaml create mode 100644 components/build-service/staging/base/manager_resources_patch.yaml diff --git a/components/build-service/production/base/kustomization.yaml b/components/build-service/production/base/kustomization.yaml index 8a98a81b348..b708158078b 100644 --- a/components/build-service/production/base/kustomization.yaml +++ b/components/build-service/production/base/kustomization.yaml @@ -25,3 +25,6 @@ patches: components: - ../../components/rh-certs + +patches: + - path: manager_resources_patch.yaml diff --git a/components/build-service/production/base/manager_resources_patch.yaml b/components/build-service/production/base/manager_resources_patch.yaml new file mode 100644 index 00000000000..32205435387 --- /dev/null +++ b/components/build-service/production/base/manager_resources_patch.yaml @@ -0,0 +1,17 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: build-service-controller-manager + namespace: build-service +spec: + template: + spec: + containers: + - name: manager + resources: + limits: + cpu: 500m + memory: 2Gi + requests: + cpu: 250m + memory: 768Mi diff --git a/components/build-service/staging/base/kustomization.yaml b/components/build-service/staging/base/kustomization.yaml index 9f39caaabba..16f1d5ce359 100644 --- a/components/build-service/staging/base/kustomization.yaml +++ b/components/build-service/staging/base/kustomization.yaml @@ -17,3 +17,6 @@ commonAnnotations: components: - ../../components/rh-certs + +patches: + - path: manager_resources_patch.yaml diff --git a/components/build-service/staging/base/manager_resources_patch.yaml b/components/build-service/staging/base/manager_resources_patch.yaml new file mode 100644 index 00000000000..32205435387 --- /dev/null +++ b/components/build-service/staging/base/manager_resources_patch.yaml @@ -0,0 +1,17 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: build-service-controller-manager + namespace: build-service +spec: + template: + spec: + containers: + - name: manager + resources: + limits: + cpu: 500m + memory: 2Gi + requests: + cpu: 250m + memory: 768Mi diff --git a/components/image-controller/production/base/manager_resources_patch.yaml b/components/image-controller/production/base/manager_resources_patch.yaml index 972112ef47f..4063cedf72a 100644 --- a/components/image-controller/production/base/manager_resources_patch.yaml +++ b/components/image-controller/production/base/manager_resources_patch.yaml @@ -13,6 +13,6 @@ spec: cpu: 500m memory: 2Gi requests: - cpu: 100m - memory: 20Mi + cpu: 250m + memory: 1Gi diff --git a/components/image-controller/staging/base/manager_resources_patch.yaml b/components/image-controller/staging/base/manager_resources_patch.yaml index 972112ef47f..4063cedf72a 100644 --- a/components/image-controller/staging/base/manager_resources_patch.yaml +++ b/components/image-controller/staging/base/manager_resources_patch.yaml @@ -13,6 +13,6 @@ spec: cpu: 500m memory: 2Gi requests: - cpu: 100m - memory: 20Mi + cpu: 250m + memory: 1Gi