Skip to content

Commit

Permalink
Operating etcd cluster for Kubernetes bad format in the final page (k…
Browse files Browse the repository at this point in the history
…ubernetes#6056)

* Operating etcd cluster for Kubernetes bad format in the final page

* Update configure-upgrade-etcd.md

* Update configure-upgrade-etcd.md
  • Loading branch information
chenhonggc authored and colemickens committed Oct 26, 2017
1 parent 7bfd9b7 commit 8ed350e
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions docs/tasks/administer-cluster/configure-upgrade-etcd.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ Use a single-node etcd cluster only for testing purpose.

1. Run the following:

``` bash
./etcd --client-listen-urls=http://$PRIVATE_IP:2379 --client-advertise-urls=http://$PRIVATE_IP:2379
```
./etcd --client-listen-urls=http://$PRIVATE_IP:2379 --client-advertise-urls=http://$PRIVATE_IP:2379

2. Start Kubernetes API server with the flag `--etcd-servers=$PRIVATE_IP:2379`.

Expand Down Expand Up @@ -130,12 +128,11 @@ Though etcd keeps unique member IDs internally, it is recommended to use a uniqu

4. Start the newly added member on a machine with the IP `10.0.0.4`:

```bash
export ETCD_NAME="member4"
export ETCD_INITIAL_CLUSTER="member2=http://10.0.0.2:2380,member3=http://10.0.0.3:2380,member4=http://10.0.0.4:2380"
export ETCD_INITIAL_CLUSTER_STATE=existing
etcd [flags]
```
export ETCD_NAME="member4"
export ETCD_INITIAL_CLUSTER="member2=http://10.0.0.2:2380,member3=http://10.0.0.3:2380,member4=http://10.0.0.4:2380"
export ETCD_INITIAL_CLUSTER_STATE=existing
etcd [flags]

5. Do either of the following:

1. Update its `--etcd-servers` flag to make Kubernetes aware of the configuration changes, then restart the Kubernetes API server.
Expand Down

0 comments on commit 8ed350e

Please sign in to comment.