Add --zone for gcloud copies

pull/29/head
Nathan Anderson 2016-07-14 10:23:02 -04:00
parent cd019aa31a
commit 087c67d369
3 changed files with 14 additions and 12 deletions

View File

@ -193,13 +193,13 @@ openssl x509 -in kubernetes.pem -text -noout
## Copy TLS Certs ## 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 controller0:~/ --zone us-central1-f
gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem controller1:~/ 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:~/ 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:~/ 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:~/ 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:~/ 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:~/ 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:~/ 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:~/ gcloud compute copy-files ca.pem kubernetes-key.pem kubernetes.pem worker2:~/ --zone us-central1-f
``` ```

View File

@ -287,7 +287,8 @@ gcloud compute target-pools create kubernetes-pool \
``` ```
gcloud compute target-pools add-instances kubernetes-pool \ gcloud compute target-pools add-instances kubernetes-pool \
--instances controller0,controller1,controller2 --instances controller0,controller1,controller2 \
--zone us-central1-f
``` ```
``` ```

View File

@ -48,7 +48,8 @@ Grab the `EXTERNAL_IP` for one of the worker nodes:
``` ```
export NODE_PUBLIC_IP=$(gcloud compute instances describe worker0 \ 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: Test the nginx service using cURL: