Skip to main content
Version: Next

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-server and arkflow binaries on each node.
  • Label convention agreed (env, tier).

Steps​

  1. 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
  2. Run the Agent config on each compute node:

    ARKFLOW_NODE_TOKEN=ark-node-... arkflow --config examples/case_fleet_rollout.yaml

    The node registers, reports, and reconciles its stream against the Hub.

  3. 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
  4. Create a selector rollout for the edge tier (console: Fleet → Rollouts → label selector; API: POST /api/v1/rollouts with the selector). The response pins the resolved node set.

  5. Watch convergence on the rollout detail; the badge turns green only when every resolved node reports the target.

  6. 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.