ECP Management Service

The ECP Management Service needs to be installed on a K3s installation to connect to the SmartWorks interface after which, management and orchestration can be done from the cloud.

Install K3s on 64-bit Linux

The Edge Compute Platform uses K3s, a lightweight kubernetes.

  1. Before installing K3s on Ubuntu 20.04 on a Raspberry Pi, the file /boot/firmware/cmdline.txt needs to be edited by adding the following code to the end of the line (not on a new line):
    cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory
  2. After editing and saving the file, reboot the Raspberry Pi for the changes to take effect.
  3. Run the following command:
    sudo apt install linux-modules-extra-raspi
  4. Reboot the Raspberry Pi again using:
    sudo reboot
  5. Access your Raspberry Pi through SSH and install the following command:
    sudo apt install curl
  6. Run the following line to install K3s:
    curl -sfL | K3S_KUBECONFIG_MODE="644" sh -s -

Access the SmartWorks Platform

  1. Open the SmartWorks platform to enable the communication with the Edge Device (Raspberry Pi).
  2. Create a new Asset in the Fleets. This Asset represents the Device (your Raspberry) in which you could install Edge Applications.
    1. To create a new Asset, click Edge Ops > Fleet Management and click + New Asset at the top right corner.
    2. In the screen that appears, fill in the fields, read the conditions and mark the boxes as required. Click Next.
      The web page shows two commands that enables you to install the Management app on your Devices.
      • The first command installs the credentials you need to install and run Edge applications.
      • The second one installs the Edge Compute Platform Management Service that manages the installation and uninstallation of the apps.

      Figure 1.
      When you run this command in your Device, the SmartWorks Studio and the Edge Compute Platform Management Service communicate with each other and when the installation and the communication are finished, it will display the following image.

      Figure 2.
    3. Click on Next.
      You will see that the installation is finished and displays the device status, such as the CPU and Memory Usage and the Deployment Stats.

      Figure 3.