From 3d4b723a82a2dea47e61386eda457c1c5ad03d2b Mon Sep 17 00:00:00 2001 From: Pick1a1username <20301273+Pick1a1username@users.noreply.github.com> Date: Sun, 17 Feb 2019 18:53:14 +0900 Subject: [PATCH] The chapter 'Bootstrapping the etcd Cluster' is updated. --- docs/07-bootstrapping-etcd.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/07-bootstrapping-etcd.md b/docs/07-bootstrapping-etcd.md index b1b2b8e..c8475a6 100644 --- a/docs/07-bootstrapping-etcd.md +++ b/docs/07-bootstrapping-etcd.md @@ -4,10 +4,10 @@ Kubernetes components are stateless and store cluster state in [etcd](https://gi ## Prerequisites -The commands in this lab must be run on each controller instance: `controller-1`, `controller-2`, and `controller-3`. Login to each controller instance: +The commands in this chapter must be run on each controller instance: `controller-1`, `controller-2`, and `controller-3`. Login to each controller node: ``` -$ ssh -i ~/.ssh/id_rsa-k8s.pub 10.240.0.11 +$ ssh -i ~/.ssh/id_rsa-k8s 10.240.0.11 ``` ### Running commands in parallel with tmux @@ -43,22 +43,22 @@ $ { } ``` -The instance internal IP address will be used to serve client requests and communicate with etcd cluster peers. Retrieve the internal IP address for the current compute instance: +The virtual machine's IP address will be used to serve client requests and communicate with etcd cluster peers. Get IP address for the current virtual machine: ``` $ INTERNAL_IP=$(ip a s | grep 'inet 10' | awk '{ print $2 }' | awk -F"/" '{ print $1 }') ``` -Each etcd member must have a unique name within an etcd cluster. Set the etcd name to match the hostname of the current compute instance: +Each etcd member must have a unique name within an etcd cluster. Set the etcd name to match the hostname of the current virtual machine: ``` -ETCD_NAME=$(hostname -s) +$ ETCD_NAME=$(hostname -s) ``` Create the `etcd.service` systemd unit file: ``` -cat <