# Kubectl Shell

This feature provides an alternative to downloading a `kubeconfig` and installing `kubectl` locally. It opens a fully configured shell within a browser tab, equipped with `kubectl` and an associated `kubeconfig`. This convenient setup allows you to quickly access your Kubernetes clusters directly from the DuploCloud Portal, with no need for downloading or configuring files on your machine.

## Enabling `kubectl` shell in the DuploCloud Platform

For EKS, `kubectl` is already enabled in the DuploCloud Platform. Once the EKS infrastructure is ready, you can navigate to **Kubernetes** -> **Services** in the DuploCloud platform and use the **KubeCtl** menu options to view the `kubectl` token, settings, and configuration details.

To set up the `kubectl` shell in DuploCloud for GKE and AKS users, see the links below.

* [`kubectl` Shell for GKE](https://docs.duplocloud.com/docs/automation-platform/kubernetes-overview/kubectl/kubectl-shell/enable-kubectl-shell-for-gke)
* [`kubectl` Shell for AKS](https://docs.duplocloud.com/docs/automation-platform/kubernetes-overview/kubectl/kubectl-shell/enable-kubectl-shell-for-aks)

{% hint style="info" %}
You can also obtain Just-In-Time (JIT) access to Kubernetes by using `duplo-jit`. See the [JIT Access](https://docs.duplocloud.com/docs/automation-platform/overview/use-cases/jit-access) documentation for detailed information about:

• Obtaining JIT access using the UI and CLI.

• Installing `duplo-jit` using various tools.

• Getting credentials for AWS access interactively or with an API token.

• Accessing the AWS Console.
{% endhint %}

## Accessing `kubectl` Shell from the DuploCloud Portal

Use `kubectl` to access the Kubernetes cluster for your Tenant namespace.

1. From the **Tenant** list box, select the correct Tenant.
2. Navigate to **Kubernetes** -> **Services**.
3. Click on the Service name from the **NAME** column.
4. From the **KubeCtl** options, select **KubeCtl Shell**. A shell instance will launch, allowing you to interact with the Kubernetes cluster directly using `kubectl` commands.

<figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FEr1GocwKYAbKvr0EtFMw%2Fimage.png?alt=media&#x26;token=d10c3bb4-182b-46d0-9094-72760cc5afe1" alt=""><figcaption></figcaption></figure>
