Run KubeEdge

Note: This step is only required if KubeEdge is installed using Source. If KubeEdge is installed using keadm ignore this step.


Cloudcore on Cloud side

If you have copied the cloudcore binary in a folder and the configuration (conf) are stored in the same folder

cd ~/kubeedge/
nohup ./cloudcore &

or

nohup ./cloudcore > cloudcore.log 2>&1 &

If you have setup using the systemctl

Run cloudcore with systemd

It is also possible to start the cloudcore with systemd. If you want, you could use the example systemd-unit-file. The following command will show you how to setup this:

sudo ln build/tools/cloudcore.service /etc/systemd/system/cloudcore.service

sudo systemctl daemon-reload
sudo systemctl start cloudcore

Note: Please fix ExecStart path in cloudcore.service. Do NOT use relative path, use absolute path instead.

If you also want also an autostart, you have to execute this, too:

 sudo systemctl enable cloudcore
sudo systemctl start cloudcore

Run Edgecore on Edge side

cd ~/kubeedge
./edgecore

or

nohup ./edgecore > edgecore.log 2>&1 &

If you have setup using the systemctl

Run edgecore with systemd

It is also possible to start the edgecore with systemd. If you want, you could use the example systemd-unit-file.

sudo ln build/tools/edgecore.service /etc/systemd/system/edgecore.service
sudo systemctl daemon-reload
sudo systemctl start edgecore

Note: Please fix ExecStart path in edgecore.service. Do NOT use relative path, use absolute path instead.

If you also want also an autostart, you have to execute this, too:

sudo systemctl enable edgecore
sudo systemctl start edgecore

Note: Please run edgecore using the users who have root permission.