集群健康状态


集群中所有的目录信息都放在
[root@k8s-node-01 ssl]# pwd
/etc/ssl/etcd/ssl


etcdctl --endpoints=https://172.16.1.30:2379 --cacert=/etc/ssl/etcd/ssl/ca.pem --cert=/etc/ssl/etcd/ssl/admin-k8s-node-02.pem --key=/etc/ssl/etcd/ssl/admin-k8s-node-02-key.pem member list

e1105a089a5065e, started, etcd-k8s-node-02, https://172.16.1.31:2380, https://172.16.1.31:2379, false
2d2cace5d91227f8, started, etcd-k8s-node-03, https://172.16.1.32:2380, https://172.16.1.32:2379, false
d25b0768a5450ea7, started, etcd-k8s-node-01, https://172.16.1.30:2380, https://172.16.1.30:2379, false

创建快照

etcdctl --endpoints=https://172.16.1.30:2379 --cacert=/etc/ssl/etcd/ssl/ca.pem --cert=/etc/ssl/etcd/ssl/admin-k8s-node-02.pem --key=/etc/ssl/etcd/ssl/admin-k8s-node-02-key.pem snapshot save etcd_snapshot.snap