This repository was archived by the owner on Jul 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ if [ "${REMOTE_HOST}" != "local" ]; then
116116 echo " kubectl --kubeconfig=${CLUSTER_DIR} /auth/kubeconfig get nodes"
117117 echo
118118 echo " Additional nodes can be added to the cluster using:"
119- echo " ./init-worker .sh <node-ip> ${CLUSTER_DIR} /auth/kubeconfig"
119+ echo " ./init-node .sh <node-ip> ${CLUSTER_DIR} /auth/kubeconfig"
120120 echo
121121
122122# Execute this script locally on the machine, assumes a kubelet.service file has already been placed on host.
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ $ gcloud compute instances create ${CLUSTER_PREFIX}-core1 \
2121Tag the first node as an apiserver node, and allow traffic to 443 on that node.
2222
2323```
24- $ gcloud compute instances add-tags ${CLUSTER_PREFIX}-core1 --tags ${CLUSTER_PREFIX}-apiserver
24+ $ gcloud compute instances add-tags ${CLUSTER_PREFIX}-core1 --tags ${CLUSTER_PREFIX}-apiserver --zone us-central1-a
2525$ gcloud compute firewall-rules create ${CLUSTER_PREFIX}-443 --target-tags=${CLUSTER_PREFIX}-apiserver --allow tcp:443
2626```
2727
@@ -30,7 +30,7 @@ $ gcloud compute firewall-rules create ${CLUSTER_PREFIX}-443 --target-tags=${CLU
3030* Replace* ` <node-ip> ` with the EXTERNAL_IP from output of ` gcloud compute instances list ${CLUSTER_PREFIX}-core1 ` .
3131
3232```
33- $ IDENT=~/.ssh/google_compute_engine ./init-master.sh <node-ip>
33+ $ REMOTE_USER=$USER IDENT=~/.ssh/google_compute_engine ./init-master.sh <node-ip>
3434```
3535
3636After the master bootstrap is complete, you can continue to add worker nodes. Or cluster state can be inspected via kubectl:
@@ -53,7 +53,7 @@ $ gcloud compute instances list ${CLUSTER_PREFIX}-core3
5353Initialize each worker node by replacing ` <node-ip> ` with the EXTERNAL_IP from the commands above.
5454
5555```
56- $ IDENT=~/.ssh/google_compute_engine ./init-node.sh <node-ip> cluster/auth/kubeconfig
56+ $ REMOTE_USER=$USER IDENT=~/.ssh/google_compute_engine ./init-node.sh <node-ip> cluster/auth/kubeconfig
5757```
5858
5959** NOTE:** It can take a few minutes for each node to download all of the required assets / containers.
You can’t perform that action at this time.
0 commit comments