Setting up all machines and servers in MobaXterm and Lens

you will learn how to initially set up all you need to later easily access and monitor the cluster’s activities on the IPC/Edge-PC.

Every project is different, still there some aspects always repeating. In this case, what you always need to do is to connect to the IPCs/Edge-PCs via SSH using MobaXterm and Lens.

In the following, you will learn how to initially set up all you need to later easily access and monitor the cluster’s activities on the IPC/Edge-PC.


  1. Open MobaXterm and click on Session in the upper left corner

    Untitled

  2. A window opens, called “session settings”. Click on SSH and type in the IP-adress from the Edge-PC you want to connect with in the field “Remote host*” Also you need to specify a username (click on checkbox) and type “**rancher**” into the field.

    Untitled

  3. The connection shall be enabled. As password also type in “rancher”

  4. Then type in the command: cat /etc/rancher/k3s/k3s.yaml

  5. What you get back is the YAML Data (find details here). Copy it by just marking it with the curser. (Pasting something in MobaXterm works by right-click with mouse).

  6. And paste it into Lens. Where you ask? Here:

    1. In Lens go on the 🏠 screen. Go to clusters, hover over the plus and click on the button called “add from kubeconfig”

      Untitled

    2. A window opens, paste the YAML Data here. You only need to insert the right IP-adress (it is the one of the Edge-PC) and press “Add cluster”.

      Untitled

    3. As a last step, you need to go to the settings from this new cluster and change the name into somthing unique.

      Untitled