etcd基本命令

添加节点
ETCDCTL_API=3 etcdctl --user=root:@123# member add etcd-cluster-1 --peer-urls=http://etcd-cluster-1.etcd-cluster.default:2380

删除节点
ETCDCTL_API=3 etcdctl member remove 7c95d18beecb442a

查看成员
ETCDCTL_API=3 etcdctl member list -w table

查看自身节点健康情况
ETCDCTL_API=3 etcdctl endpoint health -w table


查看集群状态
ETCDCTL_API=3 etcdctl endpoint status --cluster -w table

查看集群健康情况
ETCDCTL_API=3 etcdctl endpoint --cluster health -w table

posted @ 2024-01-19 17:18  坚强的小蚂蚁  阅读(29)  评论(0编辑  收藏  举报