AWS EKS — working with AWS EKS from Mirantis Lens IDE

Mirantis recently announced its acquisition of Lens Kubernetes IDE, which can be used with AWS EKS, and a standalone Kubernetes cluster.

In this article I will explain how to connect Mirantis Lens to AWS EKS Fargate cluster hassle-free.

  1. Download and install Mirantis Lens.
  2. Deploy your cluster. I am using eksctl in example below:
eksctl create cluster — name MirantisLens — version 1.18 — fargate — region us-east-1

4. Start Mirantis Lens, and click add cluster, the “+” sign:

5. Select either config file from $Home\.kube folder, or click “Paste as text” and copy paste content of .\kube\config file

6. You will see your cluster context is detected. Click “Add Cluster(s)”:

7. After few minutes you should see 2 Fargate nodes:

There are options to install “User Mode” and “Metrics” in cluster settings. “User Mode” plugin works, for “Metrics” please see below.

Note: I am trying to figure out how to install “Metrics” (Prometheus) plugin from Lens . When the plugin is enabled, two of the pods progress to the running state, leaving the other two pods in Pending state. If someone has a solution, let me know in the comments below.

Investigating further, it seems that the issue with “Metrics” plugin is that the nodeSelector key has an incorrect value — two pods from deployment are pointing to Fargate nodes, and the other two have correct value for nodeSelector key.

8. Click “Terminal” and start using your tools kubectl, eksctl, aws cli etc.,