What you are deploying¶
A working Xratu installation is three things you deploy and one thing you install locally. They are deployed at different times, they have different lifecycles, and only two of them are workloads you place yourself.
| Component | What it is | Where it runs |
|---|---|---|
| Control plane | The source of truth and the API every client talks to | One Kubernetes cluster you or Xratu operates |
| Data plane node | Reconciles desired state, builds and deploys project runtimes, returns evidence | Your own cluster, one installation per target |
| Kernel | Runs the project: its agents, workflows and blocks | Inside each project runtime, from the kernel base image |
| CLI | Your client for everything above | Your workstation or an automation runner |
The control plane¶
The control plane is a single Kubernetes Deployment plus its storage and a
Service. Inside it run two active service roles, selected per container by
XRATU_CP_SERVICE_ROLE:
api serves the HTTP API on port 8080, which is what the CLI, the API
and every data plane node talk to. Its health surface is three endpoints:
/v1/system/health/startup, /v1/system/health/readiness and
/v1/system/health/liveness.
controller runs the reconciliation loops that turn declared state into
assignments.
Project deployment calls the scheduler's placement operation against recorded data-plane capability facts. The controller role holds the lease for the desired-state cycle:
- name: api
env:
- name: XRATU_CP_SERVICE_ROLE
value: "api"
ports:
- name: http
containerPort: 8080
- name: controller
env:
- name: XRATU_CP_SERVICE_ROLE
value: "controller"
- name: XRATU_CP_LEASE_NAME
value: "xratu-controller-manager"
After deployment both run in one pod:
The controller role takes the xratu-controller-manager lease, so the
deployment has a defined single-active behaviour for desired-state
reconciliation.
Storage is a backend choice made at deployment time and latched on first start. The manifest ships with a file-backed default on a persistent volume; a production deployment selects its backend and profile before that first start, because the choice cannot be changed afterwards. See Storage backends and profiles and The identity latch.
One control plane is one cluster in Xratu's operating model, and an organisation is the administrative boundary above it. See Component topology.
Data plane nodes¶
A data plane node is xratud, the reconciling runtime. It registers with the
control plane, pulls assignments, verifies artifacts against their digests,
resolves closures and builds images, deploys and supervises project runtimes,
and reports status, logs, evidence and telemetry back with durable delivery.
A node builds and deploys a project runtime and then supervises it; the
runtime's kernel executes agents and workflows through the Application ABI.
Assignments carry build and deployment lifecycle, while the node's kernel
control lane carries runtime.* operations, heartbeat, receipts and logs. See
Component topology.
You do not deploy a node by writing a manifest. You describe an installation
and the install contract renders it, because the runtime shape is load bearing:
nodes run as a StatefulSet, since enrollment secrets are keyed by stable node
labels and the bootstrap path derives those labels from stable pod identity.
Durable node state lives under /var/lib/xratu on a retained volume:
volumeClaimTemplates:
- metadata:
name: cursor-state
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
That volume is where identity and continuity survive a restart. See The install contract and Durable runtime state.
The unit you deploy is an installation, identified by dp_install, and
dp_count sets how many nodes that installation runs. An installation belongs
to one organisation and one pool, and its location comes from your active
Kubernetes and cloud context rather than from its name. One installation per
target: per namespace, per region, per cloud. See
dp_install and
Data plane pools.
A node also runs a SPIRE agent as a peer process in its own DaemonSet,
supplying workload identity to xratud and to every project runtime kernel on
that node. The installation renders and applies it.
Installing a node also materialises more than the runtime itself: the
StatefulSet and its volume baseline, project runtime authority, workload
identity registration, the managed private fabric, and the enrollment token set
that lets the node join. Those artifacts are listed and explained in
What prepare generates.
The three published images are:
| Image | What it is |
|---|---|
xratu-control-plane |
The control-plane API, controller and scheduler |
xratu-data-plane |
xratud, the node runtime |
xratu/kernels/execd |
The kernel, used as the project runtime base |
Kernels¶
The kernel is not a component you place. Its image is published for you to pull, and from then on it is the base every project runtime is built from. A kernel runs with each project runtime rather than as a shared service, and its lifecycle is bound to that runtime, so rollout, scale-down and drain all act at the project runtime boundary.
Once a project is deployed, its kernel executes that project's agents and workflows independently. Runs are driven from inside the runtime and are not dispatched to it by the control plane or the node, which is why nothing about run behaviour appears in the day-0 path.
The data plane owns composing the final project runtime image on top of that base. This is why the kernel appears in the image set you push on day 0 but never in a deployment step of its own. See The kernel image and Runtime image composition.
The CLI¶
The CLI is a pip install, and it is the client for day-0 and day-2 alike. It is the only component you install outside a cluster, and it carries the SDK with it, so one environment both authors blocks and operates the platform.
Everything the CLI does goes through the control-plane API, which means a working endpoint and a valid identity are prerequisites for all of it. See Install the CLI and its dependencies.
What you supply from outside Xratu¶
Three things are yours, and an installation references them rather than creating them.
A container registry holds the tenant artifacts your projects publish. The platform images are published by Xratu and pulled, so this registry is for your bytes rather than the platform's, though a restricted network may also mirror the platform images into it. An installation names its registry root.
An object storage bucket holds artifact bytes and observability payload bodies. An installation names its bucket path, and the scheme is fixed per cloud.
A cloud identity backs the node's runtime and build service accounts, bound through the provider's workload identity mechanism.
These are the tenant side of the byte boundary: they hold your bytes, they stay in your infrastructure, and a hosted control plane never receives their contents. See Storage boundaries and Registry placement.
What this means for ordering¶
The four components cannot be stood up in any order. The control plane is first, because everything else registers with it or is described in it. The CLI comes next, because tenancy and enrollment authority are established through it. Nodes come last, because a node enrols into an organisation and a pool that must already exist.
The platform images are the exception: they are published for you to pull, so your deployments reference them rather than produce them.
Self-hosted deployment and Hosted deployment set that order out step by step. Deployment prerequisites covers what must exist before you start.