< img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=3131724&fmt=gif" />

删除边缘节点

本节介绍如何删除边缘节点。

Prerequisites

  • You should join a cluster and have the 节点管理 permission within the cluster. For more information, refer to "Cluster Members" and "Cluster Roles".

  • KubeSphere 平台需要安装并启用 KubeEdge 扩展组件。

  • 已获取 KubeSphere 集群主节点和边缘节点的 SSH 登录信息。

Steps

  1. 登录边缘节点并执行以下命令删除边缘节点中的配置:

     ./keadm reset
    apt remove mosquitto
    rm -rf /var/lib/kubeedge /var/lib/edged /etc/kubeedge/ca /etc/kubeedge/certs
  2. 登录 KubeSphere 集群主节点并执行以下命令删除边缘节点。

    kubectl delete node <edgenode-name>
  3. 在 KubeSphere 集群主节点执行以下命令检查当前的节点:

    kubectl get node

    如果命令回显中没有显示需要删除的边缘节点,则表明边缘节点删除成功。

Receive the latest news, articles and updates from KubeSphere


Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.

What’s on this Page