etcdctl常用指令.md

查看

1
2
3
4
5
6
7
8
9
10
# 查看指定 endpoint 状态信息
./etcdctl endpoint status --endpoints=192.168.122.26:2379 -wtable

# 查看 cluster 所有 集群状态信息
./etcdctl endpoint status --endpoints=192.168.122.26:2379 --cluster -wtable

ETCDCTL_API=3 etcdctl --endpoints=http://192.168.122.124:2379 endpoint status --cluster --write-out=table

# 查看 集群成员信息
./etcdctl member list --endpoints=192.168.122.26:2379 -wtable

如果 member add 失败后, 启动参数需要加上 -force-new-cluster

  1. 先删除 data/member 目录
  2. 重启 etcd 启动参数需要加上 -force-new-cluster
    https://loverhythm1990.github.io/2022/06/08/etcd-force-newcluster/#force-new-cluster

etcdctl常用指令.md
https://abrance.github.io/2024/03/28/mdstorage/domain/k8s/etcdctl常用指令/
Author
xiaoy
Posted on
March 28, 2024
Licensed under