How fleet sync works

Desired state lives in the control plane; each fleet’s agent pulls a snapshot and applies it.

Experimental Releases reach every fleet, verified by digest. Serving them on running gateways comes next. What works today

The pieces

PieceWhereRole
Control plane databasePostgreSQLAuthoritative desired state: agents, versions, deployments, pools, fleets and their revisions.
Coordinator (fleets role)Control planeServes snapshots to fleets over gRPC and the fallback transports, and receives what the fleet observed.
Fleet agentIn each clusterPulls a snapshot, writes compiled releases, projects pool intent and reports status.
Runtime pool operatorIn each clusterTurns an AgentRuntimePool into a Deployment, Service and autoscaler. See operator/README.md.
Data databaseOne per fleetReceives compiled releases; the data plane reads only from here.
A deployment reaches each cluster A deployment is recorded in the control plane database. The fleet agent in each cluster pulls it, applies it to its own data database and reports back. CLUSTER ROBTELOS-NONPROD · DEV, STG CLUSTER ROBTELOS-PROD · PROD Console / CLIdeploy v3 to stg Control planePostgreSQL:desired state,generation, fleet revision Fleet agentpulls, compiles,applies Data DBreleases +active pointer Fleet agentsame, own pool Data DBown copy 1 record 2 pull 2 pull 3 report: each agent sends back the applied generation and whether its pool is ready. The control plane never connects into a cluster. Agents connect out.
Two clusters, each with its own fleet agent and data database. The agents pull; the control plane never connects in.

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_releases is append-only. The database re-hashes each artifact and rejects a digest that does not match.
  • serving_releases is 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