From 0a4e7985a9b7376d20db79c019603ec894baa06a Mon Sep 17 00:00:00 2001 From: Daniel Norberg Date: Wed, 11 Jun 2014 18:56:29 -0400 Subject: [PATCH] e2e-test: expose minion 8080 port Otherwise the test fails when trying to reach the nginx containers. --- hack/e2e-test.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hack/e2e-test.sh b/hack/e2e-test.sh index 7ac810a52f8..bba898ea184 100755 --- a/hack/e2e-test.sh +++ b/hack/e2e-test.sh @@ -33,10 +33,21 @@ $(dirname $0)/../cluster/kube-up.sh # Auto shutdown cluster when we exit function shutdown-test-cluster () { echo "Shutting down test cluster in background." + gcloud compute firewalls delete --quiet ${MINION_TAG}-http-alt \ + --project ${PROJECT} & $(dirname $0)/../cluster/kube-down.sh > /dev/null & } trap shutdown-test-cluster EXIT +# Detect the project into $PROJECT if it isn't set +detect-project + +# Open up port 8080 so nginx containers on minions can be reached +gcloud compute firewalls create --quiet ${MINION_TAG}-http-alt \ + --project ${PROJECT} \ + --target-tags ${MINION_TAG} \ + --allow tcp:8080 & + # Launch a container $(dirname $0)/../cluster/cloudcfg.sh -p 8080:80 run dockerfile/nginx 2 myNginx