The fabric agent¶
The fabric agent is a Deployment in the data plane namespace, rendered by
prepare and applied by apply with every installation. It serves two lanes on
two ports, and they carry different things.
What is rendered¶
kind: Deployment
metadata:
name: xratu-fabric-agent
namespace: <dataplane-namespace>
spec:
replicas: 1
template:
metadata:
labels:
app.kubernetes.io/name: xratu-fabric-agent
xratu.io/fabric-mode: xratu-managed-private-fabric
spec:
serviceAccountName: xratu-fabric-agent
containers:
- name: fabric-agent
image: <runtime-image>
command: ["python", "-m", "data_plane.services.system.private_fabric.daemon"]
ports:
- name: fabric-grpc
containerPort: 7443
- name: wireguard
containerPort: 51820
protocol: UDP
The manifest lands in the bundle as k8s/managed-private-fabric.yaml, alongside
a ServiceAccount, a ClusterIP Service exposing both ports, and the
xratu-fabric-private-only NetworkPolicy.
It runs the data plane image, so a mirrored or pinned --runtime-image applies
to the fabric agent as well as to xratud.
The two lanes¶
| Lane | Port | Protocol | Between |
|---|---|---|---|
| Control | 7443 |
TCP, gRPC | xratud and its own fabric agent, inside the cluster |
| Data | 51820 |
UDP, encrypted tunnel | Two fabric agents, potentially on different clouds |
The gRPC lane is local. xratud reconciles route assignments by sending
transport messages to the agent over it. The NetworkPolicy admits this lane from
xratud pods only, so nothing outside the namespace reaches it.
The data lane spans nodes. It carries the binding traffic itself, between the fabric agent on the project's node and the one on the model's node.
flowchart LR
XD["xratud"] -- "gRPC 7443<br/>route reconcile" --> FA["Fabric agent"]
FA -- "UDP 51820<br/>binding traffic" --> FAR["Fabric agent<br/>peer node"]
Tunnel state¶
The agent's desired state for a route names the peers and the transport:
{
"route_id": "<binding_id>",
"transport": "wireguard",
"wireguard_port": 51820,
"gateway_grpc_port": 7443,
"private_route_class": "xratu_managed_private_fabric",
"source_dataplane_node_id": "<node>",
"destination_dataplane_node_id": "<node>",
"public_exposure": false,
"desired_state": "present",
"peer_connected": true,
"last_private_handshake_at": "2026-09-19T10:04:11Z",
"tunnel_status": "connected"
}
tunnel_status is connected once the peer is connected and a handshake has
been observed, and configured before that.
Readiness is evaluated in a fixed order¶
Route health resolves to ready, pending with a reason, or blocked. The
reasons are checked in order, so the first unmet condition is the one reported:
| Order | Condition | Reported as |
|---|---|---|
| 1 | Public exposure observed | blocked, public_exposure_detected |
| 2 | The tunnel peer is connected | wireguard_peer_not_connected |
| 3 | A private handshake timestamp exists | private_handshake_pending |
| 4 | The peer identity is authenticated | authenticated_peer_identity_missing |
| 5 | The gateway probe is healthy | gateway_probe_not_healthy |
| 6 | All of the above met | ready |
The evidence a node reports carries the same fields, plus
mtls_identity_reference and identity_revision for the identity the tunnel
authenticated with:
{
"health_status": "ready",
"private_route_class": "xratu_managed_private_fabric",
"transport": "wireguard",
"mtls_identity_reference": "...",
"identity_revision": "...",
"authenticated_peer_identity": "...",
"last_private_handshake_at": "2026-09-19T10:04:11Z",
"failure_reason": "",
"gateway_probe_healthy": true,
"peer_connected": true
}
Reading the order backwards is how a stalled route is diagnosed:
gateway_probe_not_healthy means the tunnel is up and the model's gateway is
not, while wireguard_peer_not_connected means the two agents have no path
between them. See
Cross-cloud routing, reachability, and egress.
One replica per installation¶
The Deployment is replicas: 1. The fabric agent is per installation rather
than per node: one agent serves the installation's routes, and xratud reaches
it through the ClusterIP Service.