How fleet sync works
Experimental Releases reach every fleet, verified by digest. Serving them on running gateways comes next. What works today
The pieces
| Piece | Where | Role |
|---|---|---|
| Control plane database | PostgreSQL | Authoritative desired state: agents, versions, deployments, pools, fleets and their revisions. |
Coordinator (fleets role) | Control plane | Serves snapshots to fleets over gRPC and the fallback transports, and receives what the fleet observed. |
| Fleet agent | In each cluster | Pulls a snapshot, writes compiled releases, projects pool intent and reports status. |
| Runtime pool operator | In each cluster | Turns an AgentRuntimePool into a Deployment, Service and autoscaler. See operator/README.md. |
| Data database | One per fleet | Receives compiled releases; the data plane reads only from here. |
Pull, not push
The control plane never connects into a cluster or into a fleet’s data database. The agent connects out to the coordinator, so it works from behind a firewall and the control plane holds no credentials for any data plane. The trade-off is that the agent holds a database login for its own fleet’s data database. That login is deliberately narrow: it can add new releases and move the “active release” pointer forward, and nothing else. It cannot change or delete a release, move the pointer back, or read anything an agent or user wrote.
Releases and the data database
compiled_releasesis append-only. The database re-hashes each artifact and rejects a digest that does not match.serving_releasesis a pointer that moves forward only.- The data database has its own schema and migrations, separate from the control plane’s. The fleet agent writes releases into it. The runtime that serves conversations only reads from it, and a user-facing service can read only its own account’s releases.
Environments
Environments are a fixed catalog: dev, stg and prod, each mapped to a fleet class. A non-production fleet serves dev and stg; a production fleet serves prod. Promoting a version means deploying it to the next environment; each fleet converges on its own.
Identity
Fleets authenticate with an enrollment credential and, optionally, mutual TLS. The client certificate carries the fleet in a URI SAN, spiffe://robotelos.io/fleet/<id>, and the coordinator checks that it matches the fleet the credential belongs to. The agent reloads its certificate at every handshake.
Next steps
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.