ETCDCTL_API=3 ./etcdctl --endpoints 172.18.30.194:2379,172.18.30.195:2379,172.18.30.197:2379,172.18.30.198:2379,172.18.33.199:2379 --write-out=table endpoint status --cert=/etc/etcd/pki/server.pem --key=/etc/etcd/pki/server-key.pem --cacert=/etc/etcd/pki/ca.pem
查看在线的数据库
ETCDCTL_API=3 ./etcdctl --endpoints 172.18.30.194:2379,172.18.30.195:2379,172.18.30.197:2379,172.18.30.198:2379,172.18.33.199:2379 --write-out=table member list --cert=/etc/etcd/pki/server.pem --key=/etc/etcd/pki/server-key.pem --cacert=/etc/etcd/pki/ca.pem