From ee21c31338b0a99c332693b288423fcbf8df257f Mon Sep 17 00:00:00 2001 From: Nathan Anderson Date: Fri, 15 Jul 2016 08:35:53 -0400 Subject: [PATCH] Add Google Cloud SDK setup This also allows us to remove the --region param from the address and subnet commands --- docs/01-infrastructure.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/docs/01-infrastructure.md b/docs/01-infrastructure.md index 4f06db1..6b28b37 100644 --- a/docs/01-infrastructure.md +++ b/docs/01-infrastructure.md @@ -27,6 +27,15 @@ worker2 us-central1-f n1-standard-1 10.240.0.32 XXX.XXX.XXX To make our Kubernetes control plane remotely accessible, a public IP address will be provisioned and assigned to a Load Balancer that will sit in front of the 3 Kubernetes controllers. +## Setup your Google Cloud SDK + +Grab the appropriate version of the [Google Cloud SDK](https://cloud.google.com/sdk/docs/). + +``` +gcloud config set compute/region us-central1 +gcloud config set compute/zone us-central1-f +``` + ## Create a Custom Network ``` @@ -43,8 +52,7 @@ Create a subnet for the Kubernetes cluster: ``` gcloud compute networks subnets create kubernetes \ --network kubernetes \ - --range 10.240.0.0/24 \ - --region us-central1 + --range 10.240.0.0/24 ``` ``` @@ -116,7 +124,7 @@ kubernetes-allow-ssh kubernetes 0.0.0.0/0 tcp:22 Create a public IP address that will be used by remote clients to connect to the Kubernetes control plane: ``` -gcloud compute addresses create kubernetes --region=us-central1 +gcloud compute addresses create kubernetes ``` ```