Skip to content

Commit 02f2821

Browse files
committed
Create the "internal" firewall rule for kubemark master.
This is equivalent to the "internal" firewall rule that is created for the regular masters. The main reason for doing it is to allow prometheus scraping metrics from various kubemark master components, e.g. kubelet. Ref. kubernetes/perf-tests#503
1 parent 18b4e1b commit 02f2821

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/kubemark/gce/util.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ function create-master-instance-with-resources {
102102
--target-tags "${MASTER_TAG}" \
103103
--allow "tcp:443" &
104104

105+
run-gcloud-compute-with-retries firewall-rules create "${MASTER_NAME}-internal" \
106+
--project "${PROJECT}" \
107+
--network "${NETWORK}" \
108+
--source-ranges "10.0.0.0/8" \
109+
--target-tags "${MASTER_TAG}" \
110+
--allow "tcp:1-2379,tcp:2382-65535,udp:1-65535,icmp" &
111+
105112
wait
106113
}
107114

@@ -136,6 +143,10 @@ function delete-master-instance-and-resources {
136143
--project "${PROJECT}" \
137144
--quiet || true
138145

146+
gcloud compute firewall-rules delete "${MASTER_NAME}-internal" \
147+
--project "${PROJECT}" \
148+
--quiet || true
149+
139150
if [ "${SEPARATE_EVENT_MACHINE:-false}" == "true" ]; then
140151
gcloud compute instances delete "${EVENT_STORE_NAME}" \
141152
"${GCLOUD_COMMON_ARGS[@]}" || true

0 commit comments

Comments
 (0)