> For the complete documentation index, see [llms.txt](https://docs.platform9.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.platform9.com/managed-kubernetes/5.10/kubeconfig/kubeconfig-and-clients-download-kubeconfig-from-ui.md).

# Kubeconfig And Clients Download Kubeconfig From Ui

Kubecofig enables clients like `kubectl` and many programming languages to securely access your Kubernetes Cluster. Specifically, kubeconfig is a YAML file that contains either a username and password combination or a secure token that when read programmatically removes the need for the Kubernetes client to ask for interactive authentication. kubeconfig is the secure and standard method to enable access to your Kubernetes clusters.

For more information on kubeconfig, refere to the [Kubernetes kubeconfig documentation.](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/)

## Kubernetes Clients

Kubernetes client libraries handle the complicated task of integrating and understanding Kubernetes by natively handling the Kubernetes APIs. A number of client libraries are maintained by the Kubernetes SIG API machinery, this includes Python, Go, Java, dotNet, Javascript and Haskell. These languages and related libraries are able to utilize the kubeconfig file to authenticate against the Kubernetes API.

## kubectl

`kubectl` provides a command line tool for interacting with Kubernetes.

`kubectl` depends on kubeconfig for authentication with your cluster. By default `kubectl` will expect kubeconfig, represented as a file named `config` to be present in the `$HOME/.kube` directory. Without kubeconfig you cannot use `kubectl`.

To get started with `kubectl` view the [cheatsheet](https://github.com/platform9/pcd-docs-gitbook/blob/main/other-docs/pmk/5.10/kubeconfig/learn/kubectl/README.md). For a detailed guide on `kubectl` review the [Kubernetes documentation.](https://kubernetes.io/docs/reference/kubectl/overview/)


---

# 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 dynamically by asking a question.

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

```
GET https://docs.platform9.com/managed-kubernetes/5.10/kubeconfig/kubeconfig-and-clients-download-kubeconfig-from-ui.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
