> ## Documentation Index
> Fetch the complete documentation index at: https://sariva.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Connecting a CFK cluster

> How a Confluent Platform (CFK) cluster gets registered — usually automatically — and how to verify Sariva can observe it.

On the CFK path, connecting a cluster is mostly **automatic** — there is no credential to create and, in the common case, nothing to attach. This page is the CFK counterpart of the [Confluent Cloud connection flow](https://sariva.mintlify.site/connecting-clusters/overview.md).

## The common case: auto-registration

When the [DM-deploy](https://sariva.mintlify.site/operate/deploy-cluster-cfk.md) PR is merged and applied (wave 3) and the `Kafka` custom resource reports **Ready**, Sariva's CR-status watcher registers the cluster on its own. The registration records:

| Field | Value | Source |
| - | - | - |
| Bootstrap servers | `kafka.<namespace>.svc.cluster.local:9071` | The Kafka CR |
| Auth type | `mtls` | The cluster's data-plane security |
| Package + image | `community` / `enterprise` and the exact broker image | Parsed off the live Kafka CR — this drives package-aware behavior such as topic growth |
| Monitoring | enabled | Default |

**The mTLS client identity needs no attach step**: cert-manager issues Sariva's Kafka client certificate into **Sariva's own namespace** (Secret `tls-sariva-client`), signed by the same CA as the brokers, and the registration references it as `k8s://sariva-platform/tls-sariva-client`. No Secret access in your Kafka namespace, no key ever entered anywhere — see the [Permissions model](https://sariva.mintlify.site/prerequisites/cfk/permissions.md).

**Prerequisites for auto-registration** (both from earlier steps): the CR-reader Role applied in the Kafka namespace, and the certificate chain up. If either is missing, the watcher logs the failure and retries — nothing wedges.

## Manual registration (no watcher)

If you apply manifests with Argo CD, Flux, or manual kubectl and run without the watcher, register the cluster once yourself:

```bash theme={null}
sariva cluster register --flavor cp_on_eks --alias <cluster> \
  --bootstrap-servers kafka.<namespace>.svc.cluster.local:9071
```

(or `POST /api/v1/clusters/register` with the same fields).

## Verify the connection

```bash theme={null}
curl -s -H "Authorization: Bearer $SARIVA_PLATFORM_API_KEY" \
  http://localhost:8000/api/v1/clusters
```

A connected cluster reads:

```json theme={null}
"state": "healthy",
"state_reason": "monitoring=ok; admin_client=ok; log_search=ok",
"registered_by": "k8s_api_cr_watcher"
```

Or simply DM the bot: `is <cluster> healthy?` — a connected cluster answers with broker count, partition health, metrics, and component status.

## What "connected" means here

Sariva's access to the cluster is **read-only**: describe-class Kafka reads over mTLS, get/list/watch on the CFK custom resources, and JMX metric scrapes. Growth (adding topics) never uses this connection to write — it goes through pull requests your reconciler applies: → [Topics & growth](https://sariva.mintlify.site/operate/topics-cfk.md).

## Continue the deployment path

> [card] [Next: validate and operate](https://sariva.mintlify.site/install-setup/health-check.md)
>
> Run the connectivity gate and send the first Slack health check.

> [card] [Back: AWS EKS + Confluent Platform (CFK)](https://sariva.mintlify.site/deploy/aws-eks-cfk.md)
>
> Return to the CFK path map.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.