Skip to content

Commit 8dbc91a

Browse files
Schedule kube-state-pod on same node as Prom pod for resources
1 parent ff3e833 commit 8dbc91a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

tests/pipelines/eks/awscli-cl2-load-with-addons-slos.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ spec:
162162
- name: max-nodes
163163
value: "1"
164164
- name: host-instance-types
165-
value: m5.4xlarge
165+
value: "m5.12xlarge m5.16xlarge r5.12xlarge r5.16xlarge c5.9xlarge c5.12xlarge"
166166
- name: host-taints
167167
value: key=monitoring,value=true,effect=NO_SCHEDULE
168168
- name: nodegroup-prefix

tests/tasks/generators/clusterloader/load-slos.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,15 @@ spec:
141141
effect: NoSchedule
142142
EOF
143143
cat $(workspaces.source.path)/perf-tests/clusterloader2/pkg/prometheus/manifests/0prometheus-operator-deployment.yaml
144+
# schedule kube-state-pod onto the same node as prometheus
145+
cat $(workspaces.source.path)/perf-tests/clusterloader2/pkg/prometheus/manifests/exporters/kube-state-metrics/deployment.yaml
146+
cat << EOF >> $(workspaces.source.path)/perf-tests/clusterloader2/pkg/prometheus/manifests/exporters/kube-state-metrics/deployment.yaml
147+
tolerations:
148+
- key: monitoring
149+
operator: Exists
150+
effect: NoSchedule
151+
EOF
152+
cat $(workspaces.source.path)/perf-tests/clusterloader2/pkg/prometheus/manifests/exporters/kube-state-metrics/deployment.yaml
144153
fi
145154
# Building clusterloader2 binary
146155
cd $(workspaces.source.path)/perf-tests/clusterloader2/

0 commit comments

Comments
 (0)