> For the complete documentation index, see [llms.txt](https://docs.bindplane.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bindplane.com/feature-guides/deployment-and-management/kubernetes-clusters.md).

# Kubernetes Clusters

Connect a Kubernetes cluster to Bindplane and build a full telemetry pipeline with node, cluster, and gateway Collector Workloads, without applying a single collector manifest.

This guide connects a Kubernetes cluster to Bindplane and builds a complete telemetry pipeline on it with three Collector Workloads. Bindplane renders, deploys, and updates every collector. After the one-time connect step, you don't run `kubectl` again.

{% hint style="info" %}
Kubernetes Clusters is in beta and may not be enabled for every organization yet. If you don't see **Kubernetes Clusters** in the settings menu, deploy collectors with the [Kubernetes manifests](https://docs.bindplane.com/deployment/kubernetes/collector/kubernetes-manifests/install.md) instead.
{% endhint %}

For the concepts behind this guide, such as how the OpenTelemetry Operator and OpAMP Bridge fit together, what each workload type deploys, and the labels collectors carry, see [Kubernetes Clusters](https://docs.bindplane.com/core-concepts/kubernetes-clusters.md) in Core Concepts.

## What You'll Build

By the end of this guide, the cluster runs three Collector Workloads:

| Workload              | Type                             | Pods                              | Collects                                                              |
| --------------------- | -------------------------------- | --------------------------------- | --------------------------------------------------------------------- |
| Node Logs and Metrics | Kubernetes Node (DaemonSet)      | One per node                      | Container logs, and node, pod, and container metrics from the Kubelet |
| Cluster Events        | Kubernetes Cluster (Deployment)  | One                               | Kubernetes events for the whole cluster                               |
| Store Gateway         | Kubernetes Gateway (StatefulSet) | Autoscaled, two to ten by default | OTLP traces, metrics, and logs from your applications                 |

Each workload has its own configuration in Bindplane, and each sends its telemetry to your destination. The screenshots come from a cluster named `Store 02`. Use your own cluster and workload names as you follow along.

## Prerequisites

* A Kubernetes cluster and `kubectl` v1.31 or newer with a context pointed at it.
* Permission to create cluster-scoped resources in that cluster, such as `cluster-admin`.
* A destination in Bindplane to send telemetry to, or the details to create one.

## Connect a Cluster

### Open Kubernetes Clusters

Select **Kubernetes Clusters** in the settings menu in the upper right. The page lists every cluster you've connected, with its **Status**, the number of **Connected Bridges**, and the number of **Workloads**.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-8154583aca5a31beba592568719aa5dda346cdc4%2Ffeature-guides-kubernetes-clusters-01-clusters-page.png?alt=media" alt="Kubernetes Clusters page with a Connect Cluster button and a Clusters table listing three clusters with their Status, Connected Bridges, and Workloads"><figcaption></figcaption></figure>

### Name the Cluster

Select **Connect Cluster** and enter a **Cluster Name**. Choose a name that identifies the cluster, such as `Production Cluster` or `Store 02`, because it's how you'll tell clusters and their collectors apart in Bindplane. The dialog shows the resource name Bindplane creates from it.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-e28f770238aa6dfb19956bd819386eb9ce8756df%2Ffeature-guides-kubernetes-clusters-02-connect-cluster.png?alt=media" alt="Connect Cluster dialog with a Cluster Name field and Cancel and Connect buttons"><figcaption></figcaption></figure>

The OpAMP Bridge and the cluster's workloads go into the `bindplane` namespace by default. To use another namespace, open **Advanced** and set **Namespace** before you select **Connect**. It can't be changed afterward.

### Install the Operator and Bridge

Bindplane opens the new cluster's page. Until the cluster's OpAMP Bridge connects, the page shows a **Cluster Not Connected** alert.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-8ebe433fcdfc0a5e06b5bacf6b347debc1618938%2Ffeature-guides-kubernetes-clusters-03-not-connected.png?alt=media" alt="Cluster page for a new cluster with empty Status, Bridge, and Version fields, a Cluster Not Connected alert with a Show Install Instructions button, and an empty Collector Workloads table"><figcaption></figcaption></figure>

Select **Show Install Instructions**. Run the four commands in order with a `kubectl` context pointed at the cluster. You can copy and run each one as-is:

1. Install cert-manager. Skip this step if it's already in the cluster.
2. Grant the operator permission to manage collector RBAC.
3. Install the OpenTelemetry Operator.
4. Apply the OpAMP Bridge manifest. It's generated for this cluster and includes your secret key.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-c22b31d9e175cd9e6c90bb782c01b7ccd12c8aa3%2Ffeature-guides-kubernetes-clusters-04-install-instructions.png?alt=media" alt="Connect the Cluster instructions with numbered steps, Copy buttons, and the cert-manager command"><figcaption></figcaption></figure>

The cert-manager and operator commands wait for their components to be ready before they return, so the sequence takes about a minute. The bridge pod can take a few more seconds to start after its command returns. For what each step installs and how to troubleshoot it, see [Connect a Kubernetes Cluster](https://docs.bindplane.com/deployment/kubernetes/collector/kubernetes-clusters/connect-a-kubernetes-cluster.md).

### Confirm the Cluster Is Connected

When the bridge pod starts, it connects to Bindplane and the alert clears on its own. The **Details** card shows **Connected**, the bridge pod's name, and the bridge version.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-075df8e12b34cf16d393e89b59387aa2aef920d9%2Ffeature-guides-kubernetes-clusters-05-connected-cluster.png?alt=media" alt="Connected cluster page showing Status Connected, the bridge pod name, Version v0.160.0, and an empty Collector Workloads table with an Add Collector Workload button"><figcaption></figcaption></figure>

The cluster is ready for workloads.

## Collect Node Logs and Metrics

Container logs and Kubelet metrics live on each node, so they need a collector on every node. That's what the **Kubernetes Node** workload type deploys.

### Add a Kubernetes Node Workload

On the cluster's page, select **Add Collector Workload**. The drawer offers three workload types:

| Workload type          | Deploys                                                         |
| ---------------------- | --------------------------------------------------------------- |
| **Kubernetes Node**    | A collector on each node in the cluster, using a DaemonSet      |
| **Kubernetes Cluster** | A single collector pod, using a Deployment                      |
| **Kubernetes Gateway** | A scalable set of collectors, using a StatefulSet or Deployment |

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-e2ccc8aa8c7052f3a60ed3b2e16aa8ea2ebe7017%2Ffeature-guides-kubernetes-clusters-06-workload-types.png?alt=media" alt="Add Collector Workload drawer with Kubernetes Node, Kubernetes Cluster, and Kubernetes Gateway cards"><figcaption></figcaption></figure>

Select **Kubernetes Node** and enter a **Workload Name**, such as `Node Logs and Metrics`. The drawer shows the resource name it will deploy under. Select **Confirm**.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-c213b2c2b9efb979f7efa8d3208ceb8bdc665a51%2Ffeature-guides-kubernetes-clusters-07-node-workload-name.png?alt=media" alt="Add Collector Workload drawer with Kubernetes Node selected and the Workload Name set to Node Logs and Metrics"><figcaption></figcaption></figure>

Bindplane adds the workload to the cluster and rolls out the cluster automatically. The OpenTelemetry Operator starts one collector pod per node, and the workload's **Status** shows **Deploying** until they report in.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-56fce3e439d148fa246428bf27b7937469f95394%2Ffeature-guides-kubernetes-clusters-08-node-workload-deploying.png?alt=media" alt="Cluster page with Rollout Complete 1/1 and a Collector Workloads row for Node Logs and Metrics with Mode DaemonSet, Namespace bindplane, a linked configuration, and Status Deploying"><figcaption></figcaption></figure>

### Open the Workload's Configuration

Bindplane created a collector configuration for the workload, named after the cluster and workload, such as `store-02-node-logs-and-metrics-config`. Select it in the **Configuration** column. It starts with an empty pipeline. Its **Platform** is **Kubernetes Node**, so the source picker only offers sources that run on a node.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-7fccbbc5948ea89d35ba9f24867c7d42e572ff49%2Ffeature-guides-kubernetes-clusters-09-node-configuration.png?alt=media" alt="Configuration page for the node workload with Platform Kubernetes Node, Collector Role Edge, and an empty Logs, Metrics, and Traces pipeline"><figcaption></figcaption></figure>

### Add Container Logs

In the **Logs** pipeline, select **Source** and choose **Kubernetes Container**.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-bbcf50e18534d99034bc0d10a1bfa364d0b703cd%2Ffeature-guides-kubernetes-clusters-10-container-source.png?alt=media" alt="Add Logs Source picker listing Bindplane Gateway, Custom, Datadog Agent, Kubernetes Container, and OpenTelemetry (OTLP)"><figcaption></figcaption></figure>

Set **Cluster Name** to your cluster's name. It's added to every record as `k8s.cluster.name`, so you can tell clusters apart in your backend. The default **File Path(s)**, `/var/log/containers/*.log`, collects every container's logs. Select **Save**.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-dad57dd17cb2bae2b9d46734b0f36b3d48bc4e67%2Ffeature-guides-kubernetes-clusters-11-container-source-form.png?alt=media" alt="Add Source: Kubernetes Container form with Cluster Name and File Path(s) set to /var/log/containers/*.log"><figcaption></figcaption></figure>

See [Kubernetes Container Logs](https://docs.bindplane.com/integrations/sources/kubernetes-container-logs.md) for every option.

### Add a Destination

Select **Destination** and choose where the data should go. You can reuse an existing destination or select **Create New**. Every pipeline in this configuration can share the same destination.

{% hint style="warning" %}
Sending straight to your backend is the quickest way to see data, but every collector in the workload then holds the backend's credentials. For production, send the node and cluster workloads through the gateway you add later in this guide. See [Before You Go to Production](#before-you-go-to-production).
{% endhint %}

### Add Kubelet Metrics

In the **Metrics** pipeline, add a **Kubernetes Kubelet** source to collect node, pod, and container metrics from the Kubelet API on each node.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-c639549b41ec71a439643cd3828d0e0e16073850%2Ffeature-guides-kubernetes-clusters-12-kubelet-source.png?alt=media" alt="Add Metrics Source picker listing Kubernetes Kubelet among the available sources"><figcaption></figcaption></figure>

The defaults reach the Kubelet on the collector's own node. **Kubelet Address** is `${KUBE_NODE_NAME}` and **Kubelet Port** is `10250`. Set **Cluster Name** to match the logs source, choose the **Metric Groups** you need, and select **Save**.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-6d5065bb0768a5db061ef886043e55ddf533fe20%2Ffeature-guides-kubernetes-clusters-13-kubelet-source-form.png?alt=media" alt="Add Source: Kubernetes Kubelet form with Kubelet Address, Kubelet Port 10250, Cluster Name, and node, pod, container, and volume Metric Groups"><figcaption></figcaption></figure>

Connect the metrics pipeline to the same destination. See [Kubernetes Kubelet Metrics](https://docs.bindplane.com/integrations/sources/kubernetes-kubelet-metrics.md) for every option.

### Roll Out the Configuration

Select **Start Rollout**. The rollout reaches each node's collector in turn. Because the configuration belongs to a workload, rolling it out also rolls out the cluster, so the change reaches Kubernetes without any extra steps.

When the rollout finishes, the workload's **Status** on the cluster's page shows one healthy collector per node, for example **3/3**.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-d2b1349b18febaedb1d228856a211c0551161977%2Ffeature-guides-kubernetes-clusters-14-node-workload-healthy.png?alt=media" alt="Cluster page with the Node Logs and Metrics workload showing Status 3/3"><figcaption></figcaption></figure>

## Collect Cluster Events

Kubernetes events, such as pod restarts, scheduling failures, and image pull errors, come from the Kubernetes API for the whole cluster. Collecting them on every node would duplicate every event, so they need exactly one collector. That's the **Kubernetes Cluster** workload type.

### Add a Kubernetes Cluster Workload

Select **Add Collector Workload**, choose **Kubernetes Cluster**, name it, for example `Cluster Events`, and select **Confirm**. Bindplane deploys a single pod Deployment.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-4247f904c940f74fea33faab2dee52da7dd2a791%2Ffeature-guides-kubernetes-clusters-15-cluster-workload-name.png?alt=media" alt="Add Collector Workload drawer with Kubernetes Cluster selected and the Workload Name set to Cluster Events"><figcaption></figcaption></figure>

### Add the Kubernetes Events Source

Open the new workload's configuration from the **Configuration** column. Its **Platform** is **Kubernetes Cluster**.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-cd0712778e5c13ed8f8966365dfe2c76584e3b28%2Ffeature-guides-kubernetes-clusters-16-cluster-configuration.png?alt=media" alt="Configuration page for the cluster workload with Platform Kubernetes Cluster and an empty pipeline"><figcaption></figcaption></figure>

In the **Logs** pipeline, add a **Kubernetes Events** source. Set **Cluster Name**, then save it and add your destination.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-507220b3cc017b12bff7b6277261a0a9c6bba3dc%2Ffeature-guides-kubernetes-clusters-17-events-source.png?alt=media" alt="Add Logs Source picker filtered to Kubernetes Events"><figcaption></figcaption></figure>

This is also the right workload for [Kubernetes Cluster Metrics](https://docs.bindplane.com/integrations/sources/kubernetes-cluster-metrics.md), which reports cluster-wide object state such as deployment replicas and pod phases. See [Kubernetes Cluster Events](https://docs.bindplane.com/integrations/sources/kubernetes-cluster-events.md) for every option.

### Roll It Out

Select **Start Rollout**. Once the collector picks up the configuration, the workload shows **1/1** on the cluster's page, and events start flowing as soon as anything happens in the cluster.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-fe9b85751cad0cb4263613fe3b39314db791d8ea%2Ffeature-guides-kubernetes-clusters-18-cluster-workload-healthy.png?alt=media" alt="Cluster page with two healthy Collector Workloads: Node Logs and Metrics as a DaemonSet and Cluster Events as a Deployment with Status 1/1"><figcaption></figcaption></figure>

{% hint style="info" %}
You don't need to grant the collectors Kubernetes API permissions yourself. The RBAC grant from the install steps lets the OpenTelemetry Operator create each collector's permissions. If the Kubernetes sources fail with `403` errors, see [Collectors fail with 403 errors](https://docs.bindplane.com/deployment/kubernetes/collector/kubernetes-clusters/troubleshooting.md#collectors-fail-with-403-errors-from-the-kubernetes-api).
{% endhint %}

## Add an In-Cluster Gateway

Applications in the cluster need somewhere to send OTLP traces, metrics, and logs. A **Kubernetes Gateway** workload gives them an in-cluster endpoint, processes the data centrally, and scales with load.

### Add a Kubernetes Gateway Workload

Select **Add Collector Workload**, choose **Kubernetes Gateway**, and name it, for example `Store Gateway`. Keep **Workload Mode** set to **StatefulSet**, the default, which gives each gateway pod its own persistent queue. Choose **Deployment** if you don't need one. The mode can't be changed later. Select **Confirm**.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-f12a5e64489bc8148963482cf930100a9802c7ed%2Ffeature-guides-kubernetes-clusters-19-gateway-workload-name.png?alt=media" alt="Add Collector Workload drawer with Kubernetes Gateway selected, the Workload Name Store Gateway, and Workload Mode StatefulSet"><figcaption></figcaption></figure>

A gateway workload does more than deploy collectors. Bindplane also:

* Creates a [Gateway](https://docs.bindplane.com/core-concepts/gateways.md) named `<cluster> / <workload>`, shown in the **Fleet / Gateway** column.
* Creates a Bindplane Gateway destination that points at the workload's Service, for example `store-gateway-collector.bindplane.svc.cluster.local`. Other configurations can use it to send telemetry to the gateway.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-003cd7a4623af567024962dfa48391b117a031ee%2Ffeature-guides-kubernetes-clusters-20-gateway-workload-deploying.png?alt=media" alt="Cluster page with the Store Gateway workload deploying as a StatefulSet, with its Gateway shown in the Fleet / Gateway column"><figcaption></figcaption></figure>

### Configure the Gateway

Open the gateway workload's configuration. Unlike the other workload types, it doesn't start empty. It already has a **Bindplane Gateway** source that receives OTLP on ports 4317 (gRPC) and 4318 (HTTP). Its **Collector Role** is **Gateway**.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-232deafeac23e8c0d3922cc9b48a25597345e3b6%2Ffeature-guides-kubernetes-clusters-21-gateway-configuration.png?alt=media" alt="Gateway workload configuration with Platform Kubernetes Gateway, Collector Role Gateway, and a Bindplane Gateway source"><figcaption></figcaption></figure>

Add your destination, plus any processors you want to run centrally, such as filtering health-check spans or batching. Then select **Start Rollout**.

Point your applications' OTLP exporters at the gateway's Service, and telemetry starts flowing. For the details, see [Route In-Cluster Telemetry Through a Gateway Workload](https://docs.bindplane.com/how-to-guides/cloud-and-platform-integrations/kubernetes/route-in-cluster-telemetry-through-a-gateway-workload.md).

### Scale the Gateway

Select the gateway workload's name in the **Collector Workloads** table to open **Edit Collector Workload**. By default, **Autoscaling** is on. A Horizontal Pod Autoscaler keeps between **Minimum Replicas** (2) and **Maximum Replicas** (10), scaling at 60% CPU or 60% memory utilization.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-7a6c860f77ed7a9d250d4222a84ee4b3cca7c398%2Ffeature-guides-kubernetes-clusters-22-edit-workload-autoscaling.png?alt=media" alt="Edit Collector Workload drawer with Name, Configuration, Image, Autoscaling on, Minimum Replicas 2, Maximum Replicas 10, and Target CPU and Memory Utilization 60"><figcaption></figcaption></figure>

Adjust the bounds to fit your load. For example, raise **Minimum Replicas** to `3` so you always keep three gateway pods for resilience. To run a fixed number of pods instead, turn **Autoscaling** off and set **Replicas**. Select **Save**, and Bindplane rolls the change out to the cluster.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-a4095ba587e8db024a41f2d648febaa6af339c60%2Ffeature-guides-kubernetes-clusters-23-edit-workload-min-replicas.png?alt=media" alt="Edit Collector Workload drawer with Minimum Replicas set to 3, and Remove Workload, Cancel, and Save buttons"><figcaption></figcaption></figure>

The same drawer changes the workload's **Configuration** and collector **Image**, and **Additional Spec**, under **Advanced**, holds extra `OpenTelemetryCollector` spec fields, such as resource requests and limits. **Remove Workload** deletes the workload and its collectors from the cluster.

## Monitor What You Deployed

### The Gateway Page

Open the gateway from the **Fleet / Gateway** column, or from **Gateways** in the navigation. The Gateway page shows the cluster and workload it belongs to, its in-cluster **Hostname**, its **Destination**, telemetry throughput across all gateway collectors, and their status and versions.

<figure><img src="https://3570577618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDBruzp1JKFyzeaBOInfR%2Fuploads%2Fgit-blob-4660bfb5c5891d3d72e3d69d6fd1fd2769cfefaf%2Ffeature-guides-kubernetes-clusters-24-gateway-page.png?alt=media" alt="Gateway page for Store 02 / Store Gateway with Details, Telemetry Overview throughput for logs, metrics, and traces, and Collector Status showing three connected collectors"><figcaption></figcaption></figure>

### The Collectors Page

Every collector a workload deploys connects to Bindplane and appears on the **Collectors** page. Node collectors are named after their node. To see only one cluster's collectors, filter by its label, for example `kubernetes-operator:store-02`, or by a single workload with `kubernetes-workload:<workload>`.

### The Cluster Page

The cluster's page shows everything at once. It shows whether the bridge is connected, which version it runs, and the health of each workload. If the bridge reports a problem, the page shows a **Cluster Disconnected** or **OpAMP Bridge Error** alert at the top.

## Before You Go to Production

**Route through the gateway.** This guide sends the node and cluster workloads straight to your backend, so every collector in them holds the backend's credentials. Point them at the gateway's Bindplane Gateway destination instead, and the credentials live only on the gateway. See [Route In-Cluster Telemetry Through a Gateway Workload](https://docs.bindplane.com/how-to-guides/cloud-and-platform-integrations/kubernetes/route-in-cluster-telemetry-through-a-gateway-workload.md).

**Keep at least two gateway pods.** Once applications send through the gateway, it carries all of the cluster's application telemetry. Keep **Minimum Replicas** at 2 or more, the default, so one pod restarting doesn't stop the flow.

**Some choices are permanent.** A workload's type, mode, and namespace, and a cluster's namespace, can't be changed after they're created. Changing one means removing the workload and adding a new one.

**Use one cluster name everywhere.** Set the same **Cluster Name** on every Kubernetes source, so `k8s.cluster.name` matches across logs, metrics, and events in your backend.

## Next Steps

* [Kubernetes Clusters](https://docs.bindplane.com/core-concepts/kubernetes-clusters.md): workload types, labels, removing workloads, and deleting a cluster.
* [Connect a Kubernetes Cluster](https://docs.bindplane.com/deployment/kubernetes/collector/kubernetes-clusters/connect-a-kubernetes-cluster.md): what the install steps put in the cluster, upgrades, and troubleshooting.
* [Route In-Cluster Telemetry Through a Gateway Workload](https://docs.bindplane.com/how-to-guides/cloud-and-platform-integrations/kubernetes/route-in-cluster-telemetry-through-a-gateway-workload.md): send applications and node collectors through the gateway.
* [Rollouts](https://docs.bindplane.com/core-concepts/rollouts.md): control how configuration changes reach the collectors.


---

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.bindplane.com/feature-guides/deployment-and-management/kubernetes-clusters.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
