Skip to content

Commit 888d26d

Browse files
authored
Merge pull request kubernetes#76773 from mm4tt/kubemark_firewall
Create the "internal" firewall rule for kubemark master.
2 parents 7115257 + 02f2821 commit 888d26d

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)