Skip to content

Commit

Permalink
Tune Build Service and Image Controller resources to prevent often ev…
Browse files Browse the repository at this point in the history
…iction (#4914)
  • Loading branch information
mmorhun authored Nov 15, 2024
1 parent 10f9627 commit 8475b04
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 4 deletions.
3 changes: 3 additions & 0 deletions components/build-service/production/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ patches:

components:
- ../../components/rh-certs

patches:
- path: manager_resources_patch.yaml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions components/build-service/staging/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ commonAnnotations:

components:
- ../../components/rh-certs

patches:
- path: manager_resources_patch.yaml
17 changes: 17 additions & 0 deletions components/build-service/staging/base/manager_resources_patch.yaml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ spec:
cpu: 500m
memory: 2Gi
requests:
cpu: 100m
memory: 20Mi
cpu: 250m
memory: 1Gi

Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ spec:
cpu: 500m
memory: 2Gi
requests:
cpu: 100m
memory: 20Mi
cpu: 250m
memory: 1Gi

0 comments on commit 8475b04

Please sign in to comment.