> For the complete documentation index, see [llms.txt](https://docs.cortexlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cortexlabs.com/0.28/clusters/cortex-cloud-on-gcp/kubectl.md).

# Setting up kubectl

## Install kubectl

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

## Install gcloud

Follow these [instructions](https://cloud.google.com/sdk/docs/install).

## Update kubeconfig

```bash
gcloud container clusters get-credentials <cluster_name> --zone <zone> --project <project_id>
```

## Test kubectl

```bash
kubectl get pods
```
