# 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](/docs/automation-platform/kubernetes-overview/kubectl/kubectl-shell/enable-kubectl-shell-for-gke.md)
* [`kubectl` Shell for AKS](/docs/automation-platform/kubernetes-overview/kubectl/kubectl-shell/enable-kubectl-shell-for-aks.md)

{% hint style="info" %}
You can also obtain Just-In-Time (JIT) access to Kubernetes by using `duplo-jit`. See the [JIT Access](/docs/automation-platform/overview/use-cases/jit-access.md) 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="/files/NnnpnpoxuGfKbYG1uobx" alt=""><figcaption></figcaption></figure>


---

# 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/kubectl-shell.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.
