例如要在集群中移出node2节点
1)在master节点上执行:

kubectl drain node2 --delete-local-data --force --ignore-daemonsets
kubectl delete node node2

2)在node2上执行:

kubeadm reset
ifconfig cni0 down
ip link delete cni0
ifconfig flannel.1 down
ip link delete flannel.1
rm -rf /var/lib/cni/

 

相关文章:

  • 2022-01-15
  • 2022-12-23
  • 2022-02-24
  • 2022-12-23
  • 2021-10-28
  • 2021-05-25
  • 2021-06-20
  • 2022-12-23
猜你喜欢
  • 2021-12-31
  • 2021-05-28
  • 2022-02-25
  • 2021-12-04
  • 2022-12-23
  • 2021-06-25
相关资源
相似解决方案