Skip to content

Commit f7c4cf6

Browse files
committed
Move Prometheus to addon nodes in GCE
AWS is missing firewall rules to allow Prometheus to scrape control plane.
1 parent cf564bf commit f7c4cf6

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

tests/e2e/scenarios/scalability/pre-test.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,11 @@ set -x
2020
# We need an instance group with a large single single node for addons such as prometheus, exec-service, etc.
2121
# In kubeup we used to call it heapster due to name of first addon, but now we call it addons.
2222

23-
if [[ "${CLOUD_PROVIDER}" == "aws" ]]; then
24-
kops create instancegroup addons --edit=false --role node --zone us-east-2b
25-
kops edit instancegroup addons --set=spec.machineType="${ADDONS_NODE_SIZE:-c7a.8xlarge}" \
26-
--set=spec.maxSize=1 --set=spec.minSize=1 --set=spec.image="ssm:/aws/service/canonical/ubuntu/server/24.04/stable/current/amd64/hvm/ebs-gp3/ami-id"
27-
elif [[ "${CLOUD_PROVIDER}" == "gce" ]]; then
23+
if [[ "${CLOUD_PROVIDER}" == "gce" ]]; then
2824
kops create instancegroup addons --edit=false --role node --zone us-east1-b
2925
kops edit instancegroup addons --set=spec.machineType="${ADDONS_NODE_SIZE:-c3-standard-22}" \
3026
--set=spec.maxSize=1 --set=spec.minSize=1 --set=spec.rootVolume.type=hyperdisk-balanced \
3127
--set=spec.image="${INSTANCE_IMAGE:-ubuntu-os-cloud/ubuntu-2404-noble-amd64-v20251001}"
28+
kops update cluster --yes
29+
kops validate cluster --wait 10m
3230
fi
33-
34-
kops update cluster --yes
35-
kops validate cluster --wait 10m

tests/e2e/scenarios/scalability/run-test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ KOPS_FEATURE_FLAGS="EtcdEventsHTTP,${KOPS_FEATURE_FLAGS:-}"
127127

128128
# AWS ONLY feature flags
129129
if [[ "${CLOUD_PROVIDER}" == "aws" ]]; then
130+
# AWS doesn't run dedicated addons node
131+
export CL2_PROMETHEUS_TOLERATE_MASTER="true"
130132
# Enable creating a single nodes instance group
131133
KOPS_FEATURE_FLAGS="AWSSingleNodesInstanceGroup,${KOPS_FEATURE_FLAGS:-}"
132134
create_args+=("--set spec.etcdClusters[*].etcdMembers[*].volumeIOPS=10000")
@@ -188,8 +190,6 @@ fi
188190
# this is used as a label to select kube-proxy pods on kops for kube-proxy service
189191
# used by CL2 Prometheus here https://github.com/kubernetes/perf-tests/blob/master/clusterloader2/pkg/prometheus/manifests/default/kube-proxy-service.yaml#L2
190192
export PROMETHEUS_KUBE_PROXY_SELECTOR_KEY="k8s-app"
191-
export PROMETHEUS_SCRAPE_APISERVER_ONLY="true"
192-
export CL2_PROMETHEUS_TOLERATE_MASTER="true"
193193
export ETCD_PORT="4001" # we want cl2 to use this port for etcd instead of 2379
194194
if [[ "${CLOUD_PROVIDER}" == "aws" && "${SCALE_SCENARIO}" == "performance" ]]; then
195195
# CL2 uses KUBE_SSH_KEY_PATH path to ssh to instances for scraping metrics

0 commit comments

Comments
 (0)