From 17be2d20475b6adc9379e5cec61c6ac81407c99b Mon Sep 17 00:00:00 2001 From: Fabio Yeon Date: Fri, 20 Mar 2015 13:32:47 -0700 Subject: [PATCH] Fix GKE kube-up code by adding project flag to network creation. Plus a few more log outputs to help debugging. --- cluster/gke/util.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cluster/gke/util.sh b/cluster/gke/util.sh index be3a9775764..06f8c186447 100755 --- a/cluster/gke/util.sh +++ b/cluster/gke/util.sh @@ -91,7 +91,9 @@ function kube-up() { # Make the specified network if we need to. if ! gcloud compute networks describe "${NETWORK}" &>/dev/null; then echo "Creating new network: ${NETWORK}" >&2 - gcloud compute networks create "${NETWORK}" --range "${NETWORK_RANGE}" + gcloud compute networks create "${NETWORK}" --project="${PROJECT}" --range "${NETWORK_RANGE}" + else + echo "Using network: ${NETWORK}" >&2 fi # Allow SSH on all nodes in the network. This doesn't actually check whether @@ -103,6 +105,8 @@ function kube-up() { --network="${NETWORK}" \ --project="${PROJECT}" \ --source-ranges="0.0.0.0/0" + else + echo "Using firewall-rule: ${FIREWALL_SSH}" >&2 fi # Bring up the cluster.