删除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  阅读(991)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· 什么是nginx的强缓存和协商缓存
· 一文读懂知识蒸馏
· Manus爆火,是硬核还是营销?
历史上的今天:
2019-11-14 ssh编译安装
欢迎这位客官来到《删除calico数据 - hanwei666 - 博客园》
点击右上角即可分享
微信分享提示