Skip to content

Commit

Permalink
Fix GKE kube-up code by adding project flag to network creation. Plus a
Browse files Browse the repository at this point in the history
few more log outputs to help debugging.
  • Loading branch information
Fabio Yeon committed Mar 20, 2015
1 parent 7f02e11 commit 17be2d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cluster/gke/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit 17be2d2

Please sign in to comment.