> 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)


---

# 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:

```
GET https://docs.infra.app/connect-your-cluster/google-cloud-platform-gke.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.
