> For the complete documentation index, see [llms.txt](https://docs.infra.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.infra.app/connect-your-cluster/google-cloud-platform-gke.md).

# Google Cloud Platform (GKE)

{% hint style="info" %}
Infra App connects automatically to most clusters. If running `kubectl` works without any modifications or custom scripts, then Infra App will also work out of the box.
{% endhint %}

### Prerequisites

* [Create a GKE cluster](https://cloud.google.com/kubernetes-engine/docs/how-to/creating-a-cluster)&#x20;
* [Download and install](https://cloud.google.com/sdk/install) the Google Cloud SDK (this includes the `gcloud`  CLI tool)
* [Login ](https://cloud.google.com/sdk/gcloud/reference/auth/login)with a user that has access to the cluster via `gcloud auth login`

### Generate the config file

[Create a config file entry](https://cloud.google.com/kubernetes-engine/docs/how-to/cluster-access-for-kubectl#generate_kubeconfig_entry) using  `gcloud`. For example:

```
gcloud container clusters get-credentials <cluster-name>
```

You're done! Infra App will discover the entry in your Kubernetes config file and automatically switch to your cluster. At any time you can access this cluster via the Cluster Switcher:

![](/files/-MKCh4mpJ9OmJ0P9U5Et)
