@@ -13,30 +13,28 @@ export CLUSTER_PREFIX=quickstart
1313Launch nodes:
1414
1515```
16- $ gcloud compute instances create ${CLUSTER_PREFIX}-core1 \
17- --image-project coreos-cloud --image-family coreos-stable \
18- --zone us-central1-a --machine-type n1-standard-1
16+ gcloud compute instances create ${CLUSTER_PREFIX}-core1 --image-project coreos-cloud --image-family coreos-stable --zone us-central1-a --machine-type n1-standard-1
1917```
2018
2119Tag the first node as an apiserver node, and allow traffic to 443 on that node.
2220
2321```
24- $ gcloud compute instances add-tags ${CLUSTER_PREFIX}-core1 --tags ${CLUSTER_PREFIX}-apiserver --zone us-central1-a
25- $ gcloud compute firewall-rules create ${CLUSTER_PREFIX}-443 --target-tags=${CLUSTER_PREFIX}-apiserver --allow tcp:443
22+ gcloud compute instances add-tags ${CLUSTER_PREFIX}-core1 --tags ${CLUSTER_PREFIX}-apiserver --zone us-central1-a
23+ gcloud compute firewall-rules create ${CLUSTER_PREFIX}-443 --target-tags=${CLUSTER_PREFIX}-apiserver --allow tcp:443
2624```
2725
2826### Bootstrap Master
2927
3028* Replace* ` <node-ip> ` with the EXTERNAL_IP from output of ` gcloud compute instances list ${CLUSTER_PREFIX}-core1 ` .
3129
3230```
33- $ REMOTE_USER=$USER IDENT=~/.ssh/google_compute_engine ./init-master.sh <node-ip>
31+ REMOTE_USER=$USER IDENT=~/.ssh/google_compute_engine ./init-master.sh <node-ip>
3432```
3533
3634After the master bootstrap is complete, you can continue to add worker nodes. Or cluster state can be inspected via kubectl:
3735
3836```
39- $ kubectl --kubeconfig=cluster/auth/kubeconfig get nodes
37+ kubectl --kubeconfig=cluster/auth/kubeconfig get nodes
4038```
4139
4240### Add Workers
@@ -46,19 +44,19 @@ Run the `Launch Nodes` step for each additional node you wish to add (changing t
4644Get the EXTERNAL_IP from each node you wish to add:
4745
4846```
49- $ gcloud compute instances list ${CLUSTER_PREFIX}-core2
50- $ gcloud compute instances list ${CLUSTER_PREFIX}-core3
47+ gcloud compute instances list ${CLUSTER_PREFIX}-core2
48+ gcloud compute instances list ${CLUSTER_PREFIX}-core3
5149```
5250
5351Initialize each worker node by replacing ` <node-ip> ` with the EXTERNAL_IP from the commands above.
5452
5553```
56- $ REMOTE_USER=$USER IDENT=~/.ssh/google_compute_engine ./init-node.sh <node-ip> cluster/auth/kubeconfig
54+ REMOTE_USER=$USER IDENT=~/.ssh/google_compute_engine ./init-node.sh <node-ip> cluster/auth/kubeconfig
5755```
5856
5957** NOTE:** It can take a few minutes for each node to download all of the required assets / containers.
6058 They may not be immediately available, but the state can be inspected with:
6159
6260```
63- $ kubectl --kubeconfig=cluster/auth/kubeconfig get nodes
61+ kubectl --kubeconfig=cluster/auth/kubeconfig get nodes
6462```
0 commit comments