> For the complete documentation index, see [llms.txt](https://docs.duplocloud.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.duplocloud.com/docs/automation-platform/kubernetes-overview/kubectl/kubectl-shell.md).

# Kubectl Shell

Configure and access the kubectl shell from within the DuploCloud Portal

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.duplocloud.com/docs/automation-platform/kubernetes-overview/kubectl/kubectl-shell.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
