Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prombench: add Kubernetes resource requests #797

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions prombench/manifests/cluster-infra/3b_prometheus-meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ spec:
- "--web.enable-lifecycle"
- "--web.external-url=http://{{ .DOMAIN_NAME }}/prometheus-meta"
name: prometheus
resources:
requests:
cpu: 100m
memory: 1Gi
volumeMounts:
- name: config-volume
mountPath: /etc/prometheus/config
Expand Down
4 changes: 4 additions & 0 deletions prombench/manifests/cluster-infra/4_kube-state-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ spec:
image: registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.10.1
args:
- "--resources=namespaces"
resources:
requests:
cpu: 5m
memory: 20Mi
ports:
- name: http-metrics
containerPort: 8080
Expand Down
7 changes: 4 additions & 3 deletions prombench/manifests/cluster-infra/6b_loki_stateful_set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,10 @@ spec:
imagePullPolicy: IfNotPresent
args:
- "-config.file=/etc/loki/loki.yaml"
requests:
cpu: 100m
memory: 100MB
resources:
requests:
cpu: 100m
memory: 200Mi
volumeMounts:
- name: config
mountPath: /etc/loki
Expand Down
4 changes: 4 additions & 0 deletions prombench/manifests/cluster-infra/6d_promtail_daemon_set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ spec:
args:
- "-config.file=/etc/promtail/promtail.yaml"
- "-client.url=http://loki:3100/api/prom/push"
resources:
requests:
cpu: 50m
memory: 100Mi
volumeMounts:
- name: config
mountPath: /etc/promtail
Expand Down
8 changes: 8 additions & 0 deletions prombench/manifests/prombench/benchmark/2_fake-webserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ data:
containerPort: 8083
- name: metrics5
containerPort: 8084
resources:
requests:
cpu: 200m
memory: 60Mi
nodeSelector:
node-name: nodes-{{ .PR_NUMBER }}
isolation: none
Expand Down Expand Up @@ -69,6 +73,10 @@ spec:
containerPort: 8083
- name: metrics5
containerPort: 8084
resources:
requests:
cpu: 200m
memory: 60Mi
nodeSelector:
node-name: nodes-{{ .PR_NUMBER }}
isolation: none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ spec:
"--config.file=/etc/prometheus/prometheus.yml",
"--log.level=debug"
]
resources:
requests:
cpu: 2
memory: 20Gi
volumeMounts:
- name: config-volume
mountPath: /etc/prometheus
Expand Down Expand Up @@ -155,6 +159,10 @@ spec:
"--config.file=/etc/prometheus/prometheus.yml",
"--log.level=debug"
]
resources:
requests:
cpu: 2
memory: 20Gi
volumeMounts:
- name: config-volume
mountPath: /etc/prometheus
Expand Down
4 changes: 4 additions & 0 deletions prombench/manifests/prombench/benchmark/6_loadgen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ spec:
env:
- name: DOMAIN_NAME
value: "{{ .DOMAIN_NAME }}"
resources:
requests:
cpu: 200m
memory: 100Mi
volumeMounts:
- name: config-volume
mountPath: /etc/loadgen
Expand Down