Skip to content

Commit 0a4e798

Browse files
author
Daniel Norberg
committed
e2e-test: expose minion 8080 port
Otherwise the test fails when trying to reach the nginx containers.
1 parent b6521a3 commit 0a4e798

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

hack/e2e-test.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,21 @@ $(dirname $0)/../cluster/kube-up.sh
3333
# Auto shutdown cluster when we exit
3434
function shutdown-test-cluster () {
3535
echo "Shutting down test cluster in background."
36+
gcloud compute firewalls delete --quiet ${MINION_TAG}-http-alt \
37+
--project ${PROJECT} &
3638
$(dirname $0)/../cluster/kube-down.sh > /dev/null &
3739
}
3840
trap shutdown-test-cluster EXIT
3941

42+
# Detect the project into $PROJECT if it isn't set
43+
detect-project
44+
45+
# Open up port 8080 so nginx containers on minions can be reached
46+
gcloud compute firewalls create --quiet ${MINION_TAG}-http-alt \
47+
--project ${PROJECT} \
48+
--target-tags ${MINION_TAG} \
49+
--allow tcp:8080 &
50+
4051
# Launch a container
4152
$(dirname $0)/../cluster/cloudcfg.sh -p 8080:80 run dockerfile/nginx 2 myNginx
4253

0 commit comments

Comments
 (0)