Skip to content

Commit

Permalink
Lower resource requests to idle usage (#563)
Browse files Browse the repository at this point in the history
* change k8s resource requests to reflect idle usage

* make presubmit

* update other manifests
  • Loading branch information
pintohutch authored Sep 5, 2023
1 parent fd35387 commit c11e8e2
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 42 deletions.
4 changes: 2 additions & 2 deletions cmd/operator/deploy/operator/05-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ spec:
limits:
memory: 2G
requests:
cpu: 8m
memory: 32M
cpu: 1m
memory: 16M
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down
8 changes: 4 additions & 4 deletions cmd/operator/deploy/operator/10-collector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ spec:
limits:
memory: 32M
requests:
cpu: 8m
memory: 16M
cpu: 1m
memory: 4M
volumeMounts:
- name: config
readOnly: true
Expand Down Expand Up @@ -121,8 +121,8 @@ spec:
limits:
memory: 2G
requests:
cpu: 16m
memory: 128M
cpu: 8m
memory: 32M
volumeMounts:
- name: storage
mountPath: /prometheus/data
Expand Down
8 changes: 4 additions & 4 deletions cmd/operator/deploy/operator/11-rule-evaluator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ spec:
limits:
memory: 32M
requests:
cpu: 8m
memory: 16M
cpu: 1m
memory: 4M
volumeMounts:
- name: config
readOnly: true
Expand Down Expand Up @@ -103,8 +103,8 @@ spec:
limits:
memory: 1G
requests:
cpu: 8m
memory: 32M
cpu: 1m
memory: 16M
volumeMounts:
- name: config-out
readOnly: true
Expand Down
8 changes: 4 additions & 4 deletions cmd/operator/deploy/operator/12-alertmanager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ spec:
limits:
memory: 128M
requests:
cpu: 8m
memory: 32M
cpu: 1m
memory: 16M
volumeMounts:
- name: alertmanager-config
readOnly: true
Expand Down Expand Up @@ -117,8 +117,8 @@ spec:
limits:
memory: 32M
requests:
cpu: 8m
memory: 16M
cpu: 1m
memory: 4M
volumeMounts:
- name: config
readOnly: true
Expand Down
8 changes: 4 additions & 4 deletions cmd/operator/deploy/rule-evaluator/01-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ spec:
limits:
memory: 32M
requests:
cpu: 8m
memory: 16M
cpu: 1m
memory: 4M
volumeMounts:
- name: config
readOnly: true
Expand Down Expand Up @@ -85,8 +85,8 @@ spec:
limits:
memory: 1G
requests:
cpu: 8m
memory: 32M
cpu: 1m
memory: 16M
volumeMounts:
- name: config-out
readOnly: true
Expand Down
12 changes: 6 additions & 6 deletions examples/alertmanager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ spec:
scheme: HTTP
resources:
requests:
cpu: 100m
memory: 200Mi
cpu: 1m
memory: 16M
limits:
memory: 3000Mi
memory: 128M
volumeMounts:
- mountPath: /etc/alertmanager/config
name: config
Expand Down Expand Up @@ -95,10 +95,10 @@ spec:
name: reloader-web
resources:
requests:
cpu: 50m
memory: 25Mi
cpu: 1m
memory: 4M
limits:
memory: 50Mi
memory: 32M
volumeMounts:
- mountPath: /etc/alertmanager/config
name: config
Expand Down
28 changes: 14 additions & 14 deletions manifests/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ spec:
limits:
memory: 2G
requests:
cpu: 8m
memory: 32M
cpu: 1m
memory: 16M
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down Expand Up @@ -579,8 +579,8 @@ spec:
limits:
memory: 32M
requests:
cpu: 8m
memory: 16M
cpu: 1m
memory: 4M
volumeMounts:
- name: config
readOnly: true
Expand Down Expand Up @@ -627,8 +627,8 @@ spec:
limits:
memory: 2G
requests:
cpu: 16m
memory: 128M
cpu: 8m
memory: 32M
volumeMounts:
- name: storage
mountPath: /prometheus/data
Expand Down Expand Up @@ -749,8 +749,8 @@ spec:
limits:
memory: 32M
requests:
cpu: 8m
memory: 16M
cpu: 1m
memory: 4M
volumeMounts:
- name: config
readOnly: true
Expand Down Expand Up @@ -782,8 +782,8 @@ spec:
limits:
memory: 1G
requests:
cpu: 8m
memory: 32M
cpu: 1m
memory: 16M
volumeMounts:
- name: config-out
readOnly: true
Expand Down Expand Up @@ -926,8 +926,8 @@ spec:
limits:
memory: 128M
requests:
cpu: 8m
memory: 32M
cpu: 1m
memory: 16M
volumeMounts:
- name: alertmanager-config
readOnly: true
Expand Down Expand Up @@ -961,8 +961,8 @@ spec:
limits:
memory: 32M
requests:
cpu: 8m
memory: 16M
cpu: 1m
memory: 4M
volumeMounts:
- name: config
readOnly: true
Expand Down
8 changes: 4 additions & 4 deletions manifests/rule-evaluator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ spec:
limits:
memory: 32M
requests:
cpu: 8m
memory: 16M
cpu: 1m
memory: 4M
volumeMounts:
- name: config
readOnly: true
Expand Down Expand Up @@ -117,8 +117,8 @@ spec:
limits:
memory: 1G
requests:
cpu: 8m
memory: 32M
cpu: 1m
memory: 16M
volumeMounts:
- name: config-out
readOnly: true
Expand Down

0 comments on commit c11e8e2

Please sign in to comment.