From 597a3dfb430603ac21463215d40a2185febe8e6f Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Fri, 10 Jun 2022 15:50:01 +1000 Subject: [PATCH] update etcd --- categories/apps/etcd.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/categories/apps/etcd.md b/categories/apps/etcd.md index 1022fb2..601fc7a 100644 --- a/categories/apps/etcd.md +++ b/categories/apps/etcd.md @@ -31,6 +31,5 @@ sudo ETCDCTL_API=3 etcdctl get --prefix=true "" -w json --endpoints=https://127 ``` sudo ETCDCTL_API=3 etcdctl member add server-2 --peer-urls=https://192.168.1.xxx:2380 --endpoints=https://192.168.1.xxx:2379,https://192.168.1.xxx:2379 --cacert=/etc/etcd/ca.pem --cert=/etc/etcd/etcd.pem --key=/etc/etcd/etcd-key.pem ``` -2. Prepare for the configursations for the new node, and remember to set `--initial-cluster-state` to existing +2. Prepare for the configursations for the new node, and remember to set `--initial-cluster-state` to existing, add put all the existing nodes to `--initial-cluster` field 3. Start the etcd service of the new node -