Skip to content

Project runtime orchestration

A deployed project version runs as a kernel inside your cluster, and the control plane decides which versions run, with how many replicas, and which one receives traffic. A node turns those decisions into Kubernetes objects, confirms the kernel inside them answers, and reports what it observed so the control plane can move the deployment on. This section covers the node's side of that: the serve assignments it receives, the objects it applies, how it hands a reconciled closure to the kernel, how deployments converge and are removed, and how it keeps its own load within bounds.

What the node runs for a deployed project

flowchart TB
  subgraph CP["CONTROL PLANE"]
    direction LR
    DS[("Deployment desired state<br/>phase, replicas")]
    RR[("Release route<br/>generation, hash")]
  end
  subgraph NODE["NODE, xratud"]
    direction TB
    SR{{"project.serve.v1 route"}}
    ACT["Runtime actuator<br/>apply, check, delete"]
    OBS["Runtime observer"]
    ORC["Runtime orchestrator<br/>run handles, backpressure"]
    GOV["Performance governor<br/>pull and worker limits"]
    SR --> ACT
    SR --> OBS
  end
  subgraph NS["YOUR CLUSTER, project namespace"]
    direction LR
    DEP["Deployment<br/>project runtime pods"]
    SVC["Service<br/>http 80, kernel 7777"]
    K["Project kernel<br/>in each pod"]
    DEP --- K
    SVC --- K
  end
  CP -->|"serve assignment with<br/>runtime and route contracts"| SR
  ACT ==>|"kubectl apply or delete"| NS
  ACT -->|"handshake on 7777"| K
  OBS -.->|"reads"| NS
  SR -->|"report with route fences"| CP

Every object in the project namespace is rendered from the contract in the assignment, so the running objects match the control plane's decision. The node's reports carry the release route's generation and hash, and the control plane refuses a report from a superseded route.

In this section