目前 KubeSphere 3.1 All-in-One安装后,svc/cloudcore没有直接暴露10000 - 10004端口到节点(而是以NodePort方式暴露30000 - 30004端口)。

为了使【节点管理】【边缘节点】【添加边缘节点】得到的添加命令有效(而不是去把命令中的端口都改成30000-30004),我只能手动给deploy/cloudcore加上hostPort了(这种方式没有svc中NodePort必须30000开始的限制)。其他负载均衡,路由等方法没测试。
kubectl -n kubeedge edit deploy cloudcore

修改后再使用得到的添加命令,就能成功的将边缘节点添加到KubeSphere了。