# Mirantis Lens

Mirantis Lens, commonly referred to as Lens, is a popular open-source Kubernetes IDE (Integrated Development Environment) that simplifies Kubernetes cluster management and visualization. Lens provides an intuitive graphical user interface (GUI) to interact with and manage multiple Kubernetes clusters, local and remote, making it easier for developers and administrators to monitor, troubleshoot, and manage workloads.

### Configuring Mirantis Lens for DuploCloud Authentication

Integrate Mirantis Lens with DuploCloud by following these steps:

1. **Install the DuploCloud Client:** Ensure the `duploctl` command-line tool is installed. If not, use the `pip install duplocloud-client` command to install it.
2. **Install the Lens Client:** Download and install the Lens Kubernetes IDE client from its official website.
3. **Generate the Kubeconfig File:** Using the DuploCloud UI or `duploctl`:

* Using the DuploCloud UI.
* Using `duploctl`, generate a `kubeconfig` file for Lens connection, as follows:<br>

```
duploctl jit update_kubeconfig --plan nonprod01 --tenant $DUPLO_TENANT --host https://$DUPLO_HOST --token $DUPLO_TOKEN
```

1. **Add Kubeconfig to Lens:** In Lens, navigate to **Catalog,** click the `+` button to add the `kubeconfig` file, and configure Lens to connect to your Kubernetes cluster.
2. **Connect to the Cluster:** Lens will prompt for a login through a browser window. For private EKS cluster authentication, ensure VPN connectivity.

{% hint style="info" %}
Disconnect from the cluster after your session to avoid repeated browser tab openings during reauthentication attempts.
{% endhint %}

Integrating Mirantis Lens with DuploCloud enhances your Kubernetes cluster management by providing a powerful graphical interface alongside the direct command-line access provided by the `kubectl` token.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.duplocloud.com/docs/automation-platform/kubernetes-overview/kubectl/mirantis-lens.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
