Skip to content

Commit cb6a2da

Browse files
authored
mintmaker: refactor patches and increase CPU requests (#9587)
- Rename patch files to use consistent naming convention - Split staging manager patch into separate files: - manager-enable-pprof-patch.yaml for profiling configuration - manager-set-resources-patch.yaml for resource limits - Increase CPU requests from 100m to 500m in both staging and production to match the CPU limits to improve pod scheduling
1 parent 6bc16be commit cb6a2da

File tree

6 files changed

+22
-11
lines changed

6 files changed

+22
-11
lines changed

components/mintmaker/production/base/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ commonAnnotations:
2020
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
2121

2222
patches:
23-
- path: pipelines-as-code-secret-patch.yaml
23+
- path: pipelines-as-code-secret-path.yaml
2424
target:
2525
name: pipelines-as-code-secret
2626
kind: ExternalSecret
2727
group: external-secrets.io
2828
version: v1beta1
29-
- path: manager_patch.yaml
29+
- path: manager-set-resources-patch.yaml
3030

3131
configurations:
3232
- kustomizeconfig.yaml

components/mintmaker/production/base/manager_patch.yaml renamed to components/mintmaker/production/base/manager-set-resources-patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
cpu: 500m
1414
memory: 8Gi
1515
requests:
16-
cpu: 100m
16+
cpu: 500m
1717
memory: 8Gi
1818
env:
1919
- name: GOMEMLIMIT

components/mintmaker/production/base/pipelines-as-code-secret-patch.yaml renamed to components/mintmaker/production/base/pipelines-as-code-secret-path.yaml

File renamed without changes.

components/mintmaker/staging/base/kustomization.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ commonAnnotations:
2121
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
2222

2323
patches:
24-
- path: manager_patch.yaml
24+
- path: manager-set-resources-patch.yaml
25+
- path: manager-enable-pprof-patch.yaml
2526

2627
configurations:
2728
- kustomizeconfig.yaml

components/mintmaker/staging/base/manager_patch.yaml renamed to components/mintmaker/staging/base/manager-enable-pprof-patch.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ spec:
1313
- --health-probe-bind-address=:8081
1414
- --metrics-secure=false
1515
- --pprof-bind-address=:6060
16-
resources:
17-
limits:
18-
cpu: 500m
19-
memory: 2048Mi
20-
requests:
21-
cpu: 100m
22-
memory: 256Mi
2316
env:
2417
- name: ENABLE_PROFILING
2518
value: "true"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: controller-manager
5+
namespace: system
6+
spec:
7+
template:
8+
spec:
9+
containers:
10+
- name: manager
11+
resources:
12+
limits:
13+
cpu: 500m
14+
memory: 2048Mi
15+
requests:
16+
cpu: 500m
17+
memory: 2048Mi

0 commit comments

Comments
 (0)