File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,21 @@ $(dirname $0)/../cluster/kube-up.sh
3333# Auto shutdown cluster when we exit
3434function 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}
3840trap 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
You can’t perform that action at this time.
0 commit comments