# Setting up kubectl

## Install kubectl

Follow these [instructions](https://kubernetes.io/docs/tasks/tools/install-kubectl).

## Install the AWS CLI

Follow these [instructions](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html).

## Configure the AWS CLI

```bash
aws --version  # should be >= 1.16

aws configure
```

## Update kubeconfig

```bash
aws eks update-kubeconfig --name=<cluster_name> --region=<region>
```

## Test kubectl

```bash
kubectl get pods
```


---

# 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.cortexlabs.com/0.29/clusters/cortex-cloud-on-aws/kubectl.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.
