Add --zone for gcloud copies
parent
cd019aa31a
commit
087c67d369
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue