删除calico数据
查看https etcd 集群状态
export ETCDCTL_API=3
etcdctl \ --cacert=/etc/etcdCA/ca.pem \ --cert=/etc/etcdCA/etcd.pem \ --key=/etc/etcdCA/etcd-key.pem \ --endpoints="https://192.168.0.233:2379,\ https://192.168.0.232:2379,\ https://192.168.0.234:2379" \ cluster-health etcdctl --dial-timeout=2s \ --cacert=/etc/etcdCA/ca.pem \ --cert=/etc/etcdCA/etcd.pem \ --key=/etc/etcdCA/etcd-key.pem \ --endpoints=192.168.0.232:2379 \ endpoint health
删除etcd node数据
1 2 3 4 5 6 7 8 9 | export ETCD_AUTHORITY= "https://192.168.0.232:2379,https://192.168.0.234:2379,https://192.168.0.234:2379" export ETCD_SCHEME=https export ETCD_CA_CERT_FILE=/etc/cni/net.d/calico-tls/etcd-ca export ETCD_CERT_FILE=/etc/cni/net.d/calico-tls/etcd-cert export ETCD_KEY_FILE=/etc/cni/net.d/calico-tls/etcd-key export ETCD_ENDPOINTS= "https://192.168.0.232:2379,https://192.168.0.233:2379,https://192.168.0.234:2379" ./calicoctl delete node sx-node236 ./calicoctl get node |
ETCDCTL_API=2 etcdctl --endpoints=https://192.168.0.232:2379 --ca-file=/etc/etcdCA/ca.pem --cert-file=/etc/etcdCA/etcd.pem --key-file=/etc/etcdCA/etcd-key.pem ls -r /calico |grep node2
etcdctl --endpoints=https://192.168.0.232:2379 --ca-file=/etc/etcdCA/ca.pem --cert-file=/etc/etcdCA/etcd.pem --key-file=/etc/etcdCA/etcd-key.pem rm -r /calico/v1/host/xyqsdn-node3
https://blog.csdn.net/liukuan73/article/details/82115146?utm_source=blogxgwz3
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步