From 7ef9f73e1079f17f1eb8d68d8b787e6c38f78137 Mon Sep 17 00:00:00 2001 From: Tulio De Souza Date: Wed, 18 Oct 2017 10:48:26 +0100 Subject: [PATCH 1/2] gcloud has deprecated --mode when creating a network. We should instead use --subnet-mode now. --- docs/03-compute-resources.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/03-compute-resources.md b/docs/03-compute-resources.md index d81202d..eb953c0 100644 --- a/docs/03-compute-resources.md +++ b/docs/03-compute-resources.md @@ -17,7 +17,7 @@ In this section a dedicated [Virtual Private Cloud](https://cloud.google.com/com Create the `kubernetes-the-hard-way` custom VPC network: ``` -gcloud compute networks create kubernetes-the-hard-way --mode custom +gcloud compute networks create kubernetes-the-hard-way --subnet-mode custom ``` A [subnet](https://cloud.google.com/compute/docs/vpc/#vpc_networks_and_subnets) must be provisioned with an IP address range large enough to assign a private IP address to each node in the Kubernetes cluster. From 1343c7b04d789d03491a69727a32b68278dbe24b Mon Sep 17 00:00:00 2001 From: Tulio De Souza Date: Wed, 18 Oct 2017 10:50:31 +0100 Subject: [PATCH 2/2] typo: it should get the IP address and not the name of the external address --- docs/08-bootstrapping-kubernetes-controllers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/08-bootstrapping-kubernetes-controllers.md b/docs/08-bootstrapping-kubernetes-controllers.md index b526bbc..d20cce3 100644 --- a/docs/08-bootstrapping-kubernetes-controllers.md +++ b/docs/08-bootstrapping-kubernetes-controllers.md @@ -269,7 +269,7 @@ gcloud compute target-pools add-instances kubernetes-target-pool \ ``` KUBERNETES_PUBLIC_ADDRESS=$(gcloud compute addresses describe kubernetes-the-hard-way \ --region $(gcloud config get-value compute/region) \ - --format 'value(name)') + --format 'value(address)') ``` ```