A healthy day-0¶
Day 0 reaches four states in order. Each has an observable form and a command that reads it.
flowchart TB
A["1 Control plane serving<br/>three health endpoints answer"]
B["2 Actor resolved<br/>actor_id is not system"]
C["3 Authority and pool recorded<br/>pool listed for the organization"]
D["4 Nodes enrolled<br/>every node registered and reporting"]
A --> B --> C --> D
1. The control plane is serving¶
curl -fsS "${CP_CLI_ENDPOINT}/v1/system/health/startup" >/dev/null && echo "startup ok"
curl -fsS "${CP_CLI_ENDPOINT}/v1/system/health/readiness" >/dev/null && echo "readiness ok"
curl -fsS "${CP_CLI_ENDPOINT}/v1/system/health/liveness" >/dev/null && echo "liveness ok"
On a finalized deployment, readiness also carries the invariants it checked:
{
"bootstrap_finalized": true,
"cp_instance_uuid": "cp-9f2c1d...",
"cp_identity_revision": "1",
"locked_db_backend": "postgres",
"locked_store_profile": "durable",
"policy_revision": "...",
"policy_source_spec_digest": "sha256:...",
"active_trust_bundle_revision": "bundle-3f9a1c72be04",
"active_trust_bundle_digest": "sha256:..."
}
A deployment still in bootstrap returns bootstrap_finalized: false and nothing
else, which is healthy for a deployment that has yet to activate its latch.
The pod runs three containers, and all three belong to one deployment:
| Container | Serving |
|---|---|
api |
The HTTP API on port 8080 |
controller |
Reconciliation loops, holding a named lease |
scheduler |
Placement, holding a named lease |
2. The actor is resolved¶
| Field | Healthy value |
|---|---|
actor_id |
Anything other than system |
auth_context.mode |
token |
auth_context.token_provider |
The provider you exchanged against |
system means the call resolved to the built-in actor rather than to you, so
the exchange did not take effect on the active profile.
3. Authority and pool are recorded¶
The pool appears for the organization, and the organization carries a governance revision that reconcile advanced. Both are control-plane-only, so this state is reachable before any node exists.
4. Nodes are enrolled and reporting¶
From the node's own view:
{
"status": "ok",
"tenancy_policy_revision": "...",
"tenant_scope": "acme",
"dataplane_pool": "edge-eu",
"enrollment_state": "active",
"runtime_identity_state": "healthy",
"lease_state": "ready",
"cursor_lag": 0,
"outbox_depth": 0
}
| Field | Healthy value | What it reads |
|---|---|---|
enrollment_state |
active |
The node holds a live enrollment |
runtime_identity_state |
healthy |
Its runtime credential is current |
lease_state |
ready, warming or active |
Its heartbeat is fresh |
cursor_lag |
0 or small |
How far behind the assignment stream it is |
outbox_depth |
0 or small |
How much reporting is queued |
The node's own probes answer on port 8091:
kubectl -n ${DP_NS} exec ${DP_NODE} -c xratud -- curl -fsS localhost:8091/healthz/ready && echo ready
Its identity state is on the retained volume:
The whole set in one pass¶
curl -fsS "${CP_CLI_ENDPOINT}/v1/system/health/readiness" >/dev/null && echo "1 control plane ok"
xratu auth whoami | jq -e '.actor_id != "system"' >/dev/null && echo "2 actor resolved"
xratu dataplane pool list ${ORG} | jq -e 'length >= 1' >/dev/null && echo "3 pool recorded"
xratu get dataplanes | jq -e 'length >= 1' >/dev/null && echo "4 nodes registered"
Four lines printed means day 0 is complete. The first line that does not print names the phase to work on, and Where to look when a step fails routes from there.
Where day 0 ends¶
Day 0 ends at a verified enrollment. A project runtime, a kernel and the control lane between them belong to the first deployment that follows, and their readiness is checked in Collect kernel diagnostics.