kubeadm 部署的etcd集群管理
集群健康状态
etcd 集群中所有的认证信息都放在
[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://x.x.x.x:2379 --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key member list
创建快照
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