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

# Deploy a CP cluster (CFK)

> Deploy Confluent Platform clusters from the DM — reasoned plan, fit check, corrections, approval, then a pull request your reconciler applies.

> [!NOTE]
>
> Kubernetes/EKS only. On a VM, skip this page.

The DM is the **single deploy path** for every CP cluster — POC, dev, uat, prod. The wizard never emits cluster manifests: it lays down the per-EKS operator bootstrap and the platform settings, and every cluster after that is born in a conversation:

```
@sariva-platform deploy dev-cluster
```

Sariva discovers what your EKS cluster can actually hold, fit-checks the sizing against it, works through changes with you, and — only after your approval — opens a **pull request** with the cluster manifests. Sariva never applies anything and never invents sizing; your reconciler applies the merged PR.

## The flow

**1. Name the cluster.** The name is an address, nothing more — Sariva never reads a tier or stage out of it (`poc-cluster` is a cluster called poc-cluster, not "a POC"). If you don't give a name, Sariva asks; it never invents one. Names must be lowercase letters, digits, and hyphens — anything else is normalized and confirmed back to you before it is used anywhere.

**2. Confirm the plan settings.** Sariva establishes the **tier** (poc / dev / uat / prod sizing) and the **package** (Community / Enterprise) for *this* cluster in the conversation — proposing sensible defaults from context and letting you change any of them before approval. Mixed packages on one platform are supported: a Community POC and an Enterprise prod cluster can coexist. The **stage** (which AWS account / gitops top-level directory) comes from your platform configuration — with a single stage Sariva uses it silently; with several it asks which.

**3. Discovery and the fit check.** For real tiers Sariva reads your EKS cluster's actual capacity — node allocatable CPU/memory, StorageClass, taints, zones — and compares the tier's sizing profile against it, deterministically. A POC skips discovery (its lightweight profile is fixed and known); that difference is internal — the conversation is the same.

**4. Blockers vs advisories.** The fit check returns two lists, not pass/fail:

| Kind | What qualifies | What happens |
| - | - | - |
| **Blocker** | The schedulability floor only — component CPU/memory requests that can't pack onto the nodes, no usable **block-storage** StorageClass (EFS/NFS defaults fail here even when marked default), untolerated node taints, node count below the one-per-node quorum replica count | "This won't work — here's the concrete gap." **No PR** until it's resolved. This is physics, not Sariva being conservative |
| **Advisory** | Best practice — multi-AZ spread, disk IO/throughput capability (surfaced for *you* to confirm against your throughput target), node-failure headroom (reported as "this configuration tolerates N node failure(s)") | Flagged with a **proceed-anyway** choice. If you proceed, that risk is yours — Sariva never hard-stops on best practice |

Advisories tighten with the tier (soft notes at dev, firm recommendations at prod); the blocker floor is identical at every tier. A fact Sariva could not discover is reported honestly as unknown — never assumed to pass.

**5. Work the problem.** On a blocker (or an advisory you want to address), Sariva proposes concrete options — bump or drop the sizing tier, drop a component, switch package, add a node — and negotiates multi-turn. Two rails hold throughout:

* **Every proposed change is re-verified by the fit check, deterministically.** Sariva reasons about *what* to change; the fit check decides *whether* it fits. Sariva never declares "now it fits" on its own.
* **You own your infrastructure.** "Add a node" or "change the StorageClass" are instructions to you, never actions Sariva takes — it re-discovers and re-checks after you've made the change. And Sariva never computes throughput sizing for you; bring your own numbers (Confluent's Sizing Calculator) and Sariva fit-checks them.

Follow-up questions stay in the conversation — "how many nodes do I have?", "what's eating the CPU?", "is gp3 fast enough?" are answered from the discovered facts. Corrections get a concise delta (what changed + the new fit verdict), not a re-print of the whole plan.

**6. Approve.** When the plan's fit check is clear — or its only open items are advisories you've explicitly accepted — Sariva asks for approval:

```
Reply 'approve' and I'll raise the PR, or tell me what to change.
```

No PR exists before this point, ever.

**7. The pull request.** On approval Sariva opens a PR in your gitops repo with the cluster manifests under `<stage>/<eks>/clusters/<name>/manifests/` — the Kafka, KRaftController, and Schema Registry CRs, their cert-manager Certificates, and (with authorization on) the bootstrap ACL Job. You review and merge; your reconciler applies it; CFK reconciles KRaft controllers first, then brokers, then Schema Registry.

**8. Registration is automatic.** At PR time Sariva records the cluster as *expected*; when its `Kafka` custom resource reports **Ready**, the CR-status watcher confirms it — no manual register step. On the cert-manager certificate sources, Sariva's own mTLS client certificate is emitted with the cluster and wired as its credential automatically, so the cluster comes up `ready` / `healthy` with nothing further to do. Then ask it:

```
@sariva-platform is dev-cluster healthy?
```

## Enterprise clusters and the license

Declaring a cluster **Enterprise** in the DM does not require a license up front. If you installed a license Secret at platform setup (the wizard's license question), the emitted Kafka CR references it and the cluster is fully licensed; if not, the cluster runs Confluent's **30-day evaluation** — and must not be scaled to zero during the trial. See [Confluent Platform package](https://sariva.mintlify.site/prerequisites/cfk/package.md).

## What Sariva will never do here

* Open a PR while a blocker stands, or before you approve.
* Invent CPU/memory/throughput numbers — sizing comes from the tier profile, facts from discovery, fit from the fit check.
* Touch your infrastructure — nodes, StorageClasses, and taints are yours; Sariva emits only the CP manifests it authors.
* Register a cluster before it exists — registration confirms reality (CR Ready), it never precedes it.

> [!NOTE]
>
> **Pending plans don't survive a platform restart.** The negotiation state is held in memory — if the Sariva pod restarts mid-conversation, start the deploy DM again. Merged PRs and running clusters are unaffected.

## Related

> [card] [Topics & growth (CFK)](https://sariva.mintlify.site/operate/topics-cfk.md)
>
> Add and delete topics on the running cluster — same conversation, same PR discipline.

> [card] [Connecting a CFK cluster](https://sariva.mintlify.site/connecting-clusters/cfk.md)
>
> What auto-registration records, and the manual register escape hatch for watcher-less setups.


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