删除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 
View Code
复制代码

 

删除etcd 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

 

posted @   hanwei666  阅读(988)  评论(0编辑  收藏  举报
欢迎这位客官来到《删除calico数据 - hanwei666 - 博客园》
点击右上角即可分享
微信分享提示