本文共 1368 字,大约阅读时间需要 4 分钟。
a. 既是k8s 节点,同时也是 etcd 节点tar zcvf k8s3.tgz /etc/ssl/etcd /etc/kubernetes /etc/systemd/system/etcd.service /etc/systemd/system/kubelet.service /etc/etcd.env /etc/nginx/nginx.conf /etc/cni/ /etc/calico/ /opt/cni /usr/local/bin/ b. 只是单纯的k8s 节点,不是etcd 节点:tar zcvf k8s13.tgz /etc/ssl/etcd /etc/kubernetes /etc/systemd/system/kubelet.service /etc/nginx/nginx.conf /etc/cni/ /etc/calico/ /opt/cni /usr/local/bin/
tencent-server —reinstall ins-q5113a3n
a. 查看 etcd3 节点的 Id:etcdctl --ca-file /etc/ssl/etcd/ssl/ca.pem --cert-file /etc/ssl/etcd/ssl/node-k8s1.pem --key-file /etc/ssl/etcd/ssl/node-k8s1-key.pem --endpoints 'https://172.17.0.8:2379' member list b. 删除 etcd3 节点:etcdctl --ca-file /etc/ssl/etcd/ssl/ca.pem --cert-file /etc/ssl/etcd/ssl/node-k8s1.pem --key-file /etc/ssl/etcd/ssl/node-k8s1-key.pem --endpoints 'https://172.17.0.8:2379' member remove e1045a04cac35523 c. 添加 etcd3 节点:etcdctl --ca-file /etc/ssl/etcd/ssl/ca.pem --cert-file /etc/ssl/etcd/ssl/node-k8s1.pem --key-file /etc/ssl/etcd/ssl/node-k8s1-key.pem --endpoints 'https://172.17.0.8:2379' member add etcd3 https://172.17.0.6:2380 d. 清空etcd3 节点数据 rm -rf /var/lib/etcd/*
转载于:https://blog.51cto.com/noican/2377562