Fleet rollout case: Hub-managed nodes with a selector-targeted rollout.
End-to-end flow: start a Hub, run the Agent config on each compute node, label
the nodes, create a selector rollout, watch it converge, and verify the audit
trail. The walkthrough below uses the registered example
examples/case_fleet_rollout.yaml
(manifest name case-fleet-rollout).
Prerequisites
- Hub credentials:
ARKFLOW_HUB_STORAGE,ARKFLOW_OPERATOR_TOKEN,ARKFLOW_NODE_TOKEN(see control-plane deployment). arkflow-serverandarkflowbinaries on each node.- Label convention agreed (
env,tier).
Steps
-
Start the Hub on
hub-a:ARKFLOW_HUB_STORAGE=/var/lib/arkflow/hub.sqlite \
ARKFLOW_OPERATOR_TOKEN=ark-op-... ARKFLOW_NODE_TOKEN=ark-node-... \
arkflow-server -
Run the Agent config on each compute node:
ARKFLOW_NODE_TOKEN=ark-node-... arkflow --config examples/case_fleet_rollout.yamlThe node registers, reports, and reconciles its stream against the Hub.
-
Label the nodes for targeting:
curl -X PUT -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
-d '{"labels":{"env":"prod","tier":"edge"}}' \
http://hub-a:8080/api/v1/nodes/edge-node-a/labels -
Create a selector rollout for the edge tier (console: Fleet → Rollouts → label selector; API:
POST /api/v1/rolloutswith the selector). The response pins the resolved node set. -
Watch convergence on the rollout detail; the badge turns green only when every resolved node reports the target.
-
Verify the audit trail: the label replacement and the rollout creation appear as actor-attributed records.
Expected result
The edge fleet converges to the rolled-out configuration; the fleet overview shows labelled nodes; the audit stream carries the label and rollout records.
Verify and roll back
- Verify:
GET /api/v1/rollouts/{id}shows all nodes converged; a test command (pause/resume) executes on one node. - Roll back: use the rollout action (
rollback) to a previously applied version; relabelling does not retract an in-flight rollout.