Skip to content
Permalink
Browse files

Merge pull request #77120 from mm4tt/automated-cherry-pick-of-#76773-…

…upstream-release-1.11

Automated cherry pick of #76773: Create the "internal" firewall rule for kubemark master.
  • Loading branch information...
k8s-ci-robot committed Apr 29, 2019
2 parents db1f1b8 + 1cf43a8 commit 7a578febe155a7366767abce40d8a16795a96371
Showing with 11 additions and 0 deletions.
  1. +11 −0 test/kubemark/gce/util.sh
@@ -84,6 +84,13 @@ function create-master-instance-with-resources {
--source-ranges "0.0.0.0/0" \
--target-tags "${MASTER_TAG}" \
--allow "tcp:443"

run-gcloud-compute-with-retries firewall-rules create "${MASTER_NAME}-internal" \
--project "${PROJECT}" \
--network "${NETWORK}" \
--source-ranges "10.0.0.0/8" \
--target-tags "${MASTER_TAG}" \
--allow "tcp:1-2379,tcp:2382-65535,udp:1-65535,icmp"
}

# Command to be executed is '$1'.
@@ -117,6 +124,10 @@ function delete-master-instance-and-resources {
--project "${PROJECT}" \
--quiet || true

gcloud compute firewall-rules delete "${MASTER_NAME}-internal" \
--project "${PROJECT}" \
--quiet || true

if [ "${SEPARATE_EVENT_MACHINE:-false}" == "true" ]; then
gcloud compute instances delete "${EVENT_STORE_NAME}" \
${GCLOUD_COMMON_ARGS} || true

0 comments on commit 7a578fe

Please sign in to comment.
You can’t perform that action at this time.