Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit b0be7a5

Browse files
authored
Merge pull request #554 from roberthbailey/gce-quickstart
Cleanups to the gce quickstart now that #543 has merged.
2 parents 775e3ea + c34ca7b commit b0be7a5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hack/quickstart/init-master.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

hack/quickstart/quickstart-gce.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $ gcloud compute instances create ${CLUSTER_PREFIX}-core1 \
2121
Tag 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

3636
After 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
5353
Initialize 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.

0 commit comments

Comments
 (0)