Edge Node Onboarding¶
According to the node access guide, obtain the installation files and access commands, install the EdgeCore edge core software on the node, so that the edge node can establish a connection with the platform and be included in platform management.
When the edge node is first onboarded, the latest version of the EdgeCore edge core software is automatically installed.
Note
The relationship between the access guide and the actual edge node machine is one-to-many. The installation files and access commands from one access guide can be used on multiple actual edge nodes.
Prerequisites¶
- The node has been prepared as required and the node environment has been configured, please refer to Edge Node Access Requirements for details
- The edge node access guide has been created, please refer to Creating an Access Guide for details
Steps¶
-
On the Edge Node List page, click the Access Guide button, and a pop-up window with the access guide will appear on the right.
-
Based on the node environment configuration, select the corresponding access guide.
-
Click the Download File button, which will redirect you to the download center. In the download list, select the edge installation package corresponding to the version and architecture:
kantadm_{version}_{architecture}.tar.gz
. It is recommended to choose the latest version. -
Copy the edge installation package to the edge node to be accessed and unzip it.
Unzip command:
Note
Place the unpacked kantadm binary file in the
/usr/local/bin
directory. -
Access the node by executing the command using either a token or certificate.
Token Installation
-
On the access guide interface, click the Token Installation tab in the third step to display the token installation steps.
Note
The token in the installation command is valid for 24 hours. For a long-term valid installation method, please use certificate installation.
-
Access the node by executing the following command.
kantadm join --cloudcore-host=10.31.226.14 --websocket-port=30000 --node-prefix=edge --token=b2d6bb5d9312c39ffac08ecfd5030bed006b8b67d0799d632d381f19fca9e765.eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2OTQ2NTk3NDV9.0sdaWbYSTURmAYmQwDn_zF7P9TwcRTSMhwPw6l87U7E --cgroup-driver=cgroupfs --remote-runtime-endpoint= --version=v1.12.2 --batch-name=edge --edge-registry=docker.m.daocloud.io/kubeedge --quic-port=30001 --http-port=30002 --stream-port=30003 --tunnel-port=30004 --labels=test=1,test1=1
Certificate Installation
-
On the access guide interface, click the Certificate Installation tab in the third step to display the certificate installation steps.
-
Click the Download Certificate button to download the certificate to your local machine.
-
Save the certificate and execute the following command.
-
Access the node by executing the following command.
kantadm join --cloudcore-host=10.2.129.13 --websocket-port=30000 --node-prefix=sh --remote-runtime-endpoint=unix:///run/containerd/containerd.sock --cgroup-driver=cgroupfs --version=v1.12.6 --batch-name=guide-test --edge-registry=docker.m.daocloud.io/kubeedge --quic-port=30001 --http-port=30002 --stream-port=30003 --tunnel-port=30004
-
-
Verify if the edge node has been successfully onboarded.
-
Select Edge Computing -> Cloud-Edge Collaboration from the left navigation bar to enter the edge unit list page.
-
Click the edge unit name to enter the edge unit details page.
-
Select Edge Resources -> Edge Nodes from the left navigation bar to enter the edge node list page.
-
Check the status of the edge node. If the current status is Healthy, it means the onboarding was successful.
-