Deployment anatomy¶
A control-plane deployment is three Kubernetes objects and nothing else: a persistent volume claim, a Deployment, and a Service. Everything the control plane does happens inside that one pod.
flowchart TB
subgraph POD["Pod: xratu-control-plane"]
API["api<br/>HTTP on 8080<br/>every CLI, API and node call"]
CTL["controller<br/>lease: xratu-controller-manager<br/>reconciliation loops"]
end
SVC["Service: xratu-control-plane"] --> API
API --- DATA[("PersistentVolumeClaim<br/>mounted at /data")]
CTL --- DATA
The two active service roles¶
Both containers run the same image and differ only by one environment variable. Splitting them into containers rather than processes is what lets Kubernetes restart and schedule them independently while they share one deployment lifecycle.
| Role | Owns | Lease |
|---|---|---|
api |
The HTTP surface on port 8080 | None |
controller |
Reconciliation loops that turn declared state into assignments | xratu-controller-manager |
- name: api
image: REPLACE_CONTROL_PLANE_IMAGE
env:
- name: XRATU_CP_SERVICE_ROLE
value: "api"
ports:
- name: http
containerPort: 8080
The api role receives all inbound calls. The controller acts on stored state
and takes a named lease so that one replica advances shared desired state.
Project deployment invokes the scheduler's placement operation against recorded
data-plane capability facts.
Health surface¶
Three endpoints, and they answer different questions. Only api serves them.
| Endpoint | Probe | What it proves |
|---|---|---|
/v1/system/health/startup |
startup | The process came up and its startup invariants hold |
/v1/system/health/readiness |
readiness | The store answers and finalization invariants still hold |
/v1/system/health/liveness |
liveness | The process is alive |
Liveness is deliberately shallow: it reports that the process is running and
nothing more. Startup and readiness both evaluate the full finalization
invariant set and fail with 503 when any of it does not hold, which is what
makes the deployment fail closed rather than serve in a degraded state. See
Finalization invariants and fail-closed startup.
Resources and replicas¶
Each of the three containers carries the same request and limit:
The shipped manifest runs a single replica. The api role scales with client
and node traffic; controller reconciliation remains single-active under its
lease. Raising replicas adds API capacity and a standby controller. See
Sizing and capacity planning.
Storage¶
The manifest mounts a persistent volume at /data and points the store at a
file on it:
- name: XRATU_CP_DB_BACKEND
value: "sqlite"
- name: XRATU_CP_DB_PATH
value: "/data/control_plane.db"
This is a bootstrap shape rather than a production one. Which backend and profile you run, and why the choice cannot be revisited later, is Storage backends and profiles.
What sits outside this manifest¶
The database. A production backend is a PostgreSQL instance you operate, referenced by connection settings.
Ingress. The Service is cluster-internal. Exposing the API is a separate decision, and for a self-hosted cluster a port-forward is the recommended default. See API exposure options.
Tenant bytes. Artifacts, credentials and telemetry payload bodies live in your registry and your object storage, reached by your nodes. The control plane holds metadata, digests and references. See The tenant byte boundary.
Execution. This pod holds desired state and resolves it; nodes materialise it and project runtimes execute your agents and workflows.
What you decide before the first start¶
Two things are fixed the moment the control plane first starts and cannot be changed afterwards: the storage backend and profile, and the control-plane identity. Both are covered by The identity latch, and what becomes immutable is listed in Post-finalization limits.
To deploy it, follow Deploy the control plane or the complete path in Self-hosted deployment.