From 087c67d369e891798c5702d33300e1b00b07d20e Mon Sep 17 00:00:00 2001 From: Nathan Anderson Date: Thu, 14 Jul 2016 10:23:02 -0400 Subject: [PATCH] Add --zone for gcloud copies --- docs/02-certificate-authority.md | 18 +++++++++--------- docs/04-kubernetes-controller.md | 3 ++- docs/09-smoke-test.md | 5 +++-- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/docs/02-certificate-authority.md b/docs/02-certificate-authority.md index 88abd10..de14d32 100644 --- a/docs/02-certificate-authority.md +++ b/docs/02-certificate-authority.md @@ -193,13 +193,13 @@ openssl x509 -in kubernetes.pem -text -noout ## Copy TLS Certs ``` -gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem controller0:~/ -gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem controller1:~/ -gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem controller2:~/ -gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem etcd0:~/ -gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem etcd1:~/ -gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem etcd2:~/ -gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem worker0:~/ -gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem worker1:~/ -gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem worker2:~/ +gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem controller0:~/ --zone us-central1-f +gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem controller1:~/ --zone us-central1-f +gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem controller2:~/ --zone us-central1-f +gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem etcd0:~/ --zone us-central1-f +gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem etcd1:~/ --zone us-central1-f +gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem etcd2:~/ --zone us-central1-f +gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem worker0:~/ --zone us-central1-f +gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem worker1:~/ --zone us-central1-f +gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem worker2:~/ --zone us-central1-f ``` diff --git a/docs/04-kubernetes-controller.md b/docs/04-kubernetes-controller.md index 402b680..0043081 100644 --- a/docs/04-kubernetes-controller.md +++ b/docs/04-kubernetes-controller.md @@ -287,7 +287,8 @@ gcloud compute target-pools create kubernetes-pool \ ``` gcloud compute target-pools add-instances kubernetes-pool \ - --instances controller0,controller1,controller2 + --instances controller0,controller1,controller2 \ + --zone us-central1-f ``` ``` diff --git a/docs/09-smoke-test.md b/docs/09-smoke-test.md index 9b11b6f..0828499 100644 --- a/docs/09-smoke-test.md +++ b/docs/09-smoke-test.md @@ -48,7 +48,8 @@ Grab the `EXTERNAL_IP` for one of the worker nodes: ``` export NODE_PUBLIC_IP=$(gcloud compute instances describe worker0 \ - --format 'value(networkInterfaces[0].accessConfigs[0].natIP)') + --format 'value(networkInterfaces[0].accessConfigs[0].natIP)' \ + --zone us-central1-f) ``` Test the nginx service using cURL: @@ -83,4 +84,4 @@ Commercial support is available at

Thank you for using nginx.

-``` \ No newline at end of file +```