$ export ETCDCTL_API=3
$ export CA=/etc/etcd/ssl
$ etcdctl --write-out=table --cacert=${CA} /etcd-ca.pem --cert=${CA} /etcd.pem --key=${CA} /etcd-key.pem --endpoints=100.67.151.2:2379 member list
+------------------+---------+-------+---------------------------+---------------------------+
| ID | STATUS | NAME | PEER ADDRS | CLIENT ADDRS |
+------------------+---------+-------+---------------------------+---------------------------+
| 23a97cc01374ffea | started | coco4 | https://100.67.151.4:2380 | https://100.67.151.4:2379 |
| 3ed68cceecd5de8a | started | coco5 | https://100.67.151.5:2380 | https://100.67.151.5:2379 |
| d119ba673571f775 | started | coco2 | https://100.67.151.2:2380 | https://100.67.151.2:2379 |
+------------------+---------+-------+---------------------------+---------------------------+
$ export ETCDCTL_API=3
$ export CA=/etc/etcd/ssl
copy keys
$ cd && wget -qO- "https://github.com/coreos/etcd/releases/download/v3.2.9/etcd-v3.2.9-linux-amd64.tar.gz" | tar -zx
$ mv etcd-v3.2.9-linux-amd64/etcd* /usr/local/bin/ && rm -rf etcd-v3.2.9-linux-amd64
$ etcdctl --cacert=${CA} /etcd-ca.pem --cert=${CA} /etcd.pem --key=${CA} /etcd-key.pem --endpoints=100.67.151.2:2379,100.67.151.6:2379 member add coco6 --peer-urls=https://100.67.151.6:2380
$ etcdctl --write-out=table --cacert=${CA} /etcd-ca.pem --cert=${CA} /etcd.pem --key=${CA} /etcd-key.pem --endpoints=100.67.151.2:2379 member list
+------------------+-----------+-------+---------------------------+---------------------------+
| ID | STATUS | NAME | PEER ADDRS | CLIENT ADDRS |
+------------------+-----------+-------+---------------------------+---------------------------+
| 23a97cc01374ffea | started | coco4 | https://100.67.151.4:2380 | https://100.67.151.4:2379 |
| 3ed68cceecd5de8a | started | coco5 | https://100.67.151.5:2380 | https://100.67.151.5:2379 |
| 866f35d22bad070b | unstarted | | https://100.67.151.6:2380 | |
| d119ba673571f775 | started | coco2 | https://100.67.151.2:2380 | https://100.67.151.2:2379 |
+------------------+-----------+-------+---------------------------+---------------------------+
$ etcd --trusted-ca-file=${CA} /etcd-ca.pem --peer-trusted-ca-file=${CA} /etcd-ca.pem --peer-cert-file=${CA} /etcd.pem --cert-file=${CA} /etcd.pem --key-file=${CA} /etcd-key.pem --peer-key-file=${CA} /etcd-key.pem --name coco6 --initial-advertise-peer-urls https://100.67.151.6:2380 --listen-peer-urls https://0.0.0.0:2380 --listen-client-urls https://0.0.0.0:2379 --advertise-client-urls https://100.67.151.6:2379 --initial-cluster coco2=https://100.67.151.2:2380,coco4=https://100.67.151.4:2380,coco5=https://100.67.151.5:2380,coco6=https://100.67.151.6:2380 --peer-client-cert-auth=true --client-cert-auth=true --initial-cluster-token etcd-k8s-cluster --initial-cluster-state existing
$ etcdctl --write-out=table --cacert=${CA}/etcd-ca.pem --cert=${CA}/etcd.pem --key=${CA}/etcd-key.pem --endpoints=100.67.151.2:2379 member list
+------------------+-----------+-------+---------------------------+---------------------------+
| ID | STATUS | NAME | PEER ADDRS | CLIENT ADDRS |
+------------------+-----------+-------+---------------------------+---------------------------+
| 23a97cc01374ffea | started | coco4 | https://100.67.151.4:2380 | https://100.67.151.4:2379 |
| 3ed68cceecd5de8a | started | coco5 | https://100.67.151.5:2380 | https://100.67.151.5:2379 |
| 83123bf5c7646392 | unstarted | | https://100.67.151.6:2380 | |
| d119ba673571f775 | started | coco2 | https://100.67.151.2:2380 | https://100.67.151.2:2379 |
+------------------+-----------+-------+---------------------------+---------------------------+
$ etcdctl --cacert=${CA}/etcd-ca.pem --cert=${CA}/etcd.pem --key=${CA}/etcd-key.pem --endpoints=100.67.151.2:2379 member remove 83123bf5c7646392
$ etcdctl --write-out=table --cacert=${CA}/etcd-ca.pem --cert=${CA}/etcd.pem --key=${CA}/etcd-key.pem --endpoints=100.67.151.2:2379 member list
+------------------+---------+-------+---------------------------+---------------------------+
| ID | STATUS | NAME | PEER ADDRS | CLIENT ADDRS |
+------------------+---------+-------+---------------------------+---------------------------+
| 23a97cc01374ffea | started | coco4 | https://100.67.151.4:2380 | https://100.67.151.4:2379 |
| 3ed68cceecd5de8a | started | coco5 | https://100.67.151.5:2380 | https://100.67.151.5:2379 |
| d119ba673571f775 | started | coco2 | https://100.67.151.2:2380 | https://100.67.151.2:2379 |
+------------------+---------+-------+---------------------------+---------------------------+
Add original member which was in config