Skip to content

Legion 0.1.19

Choose a tag to compare

@grepjava grepjava released this 13 Nov 08:02
· 651 commits to main since this release

Measured performance, a CA that rotates in place, nodes that change roles, load-balancer addresses, VM pods, and a web console.

  • Measured. Reconciliation, watches, endpoint propagation, pf as services grow, image pulls and loads, and the mesh as nodes join are each measured by a test that prints its table (docs/MEASURE.md). Two got faster for what they showed: the planner handles 5,000 tasks in 78 ms (from 383), and adding a service at 1,000 services takes 0.9 s (from 4.2).
  • CA rotation. legion ca rotate makes a new cluster CA, cross-signed by the old one; every manager and node moves to it by itself, and the rotation finishes once all have. legion ca status shows each holder.
  • Roles in place. legion node promote|demote turns a worker into a manager or back without it leaving the cluster.
  • Placement. Affinity and anti-affinity between services, and priorities with preemption.
  • Networking. Mesh relays for nodes behind NAT (--mesh-nat, --mesh-relay). A service's load-balancer address (endpoint.loadBalancer), held with CARP by one ready node and moved when it fails.
  • Storage. Local volumes lost with their node are marked lost, and legion volume restore --replace refills them from a backup on another node.
  • VM pods. A container with vm boots with bhyve on the pod's network.
  • Multi-arch images. Each node runs its own platform's image from a multi-arch index, as jailer builds them.
  • Web console. --console-listen serves a console from the daemon; legion console login prints a one-time sign-in link. It works as the signed-in user, with the API's role checks and audit, and shows the cluster live. Teams apply YAML with a diff first, scale, change images, roll back, delete, edit labels, read a task's logs and open a terminal in it. Admins drain, pause, promote and remove nodes and edit their taints; move, back up and restore Volumes, including lost ones; rotate the CA, show and rotate join tokens, set autolock, back up the store, create users; and read the audit log. The Network page shows which services in a namespace may reach which, and on which ports (CONSOLE.md, phases 1 to 3).
  • legion reach. What may reach what among a namespace's services, evaluated with the same rules the nodes' guards apply.
  • Fixed: Cluster.Me could answer from a replica that had not yet seen a role just given; an agent kept using a connection made with its old certificate after a CA rotation; a bare --advertise had no port; a lost Volume could not be deleted while an unplaced task named it; a VM's disk-only image needed a command it doesn't have.

Install

On FreeBSD 15 for amd64, as root:

tar -xf legion-0.1.19-freebsd15-amd64.tar.xz --strip-components 1 -C /usr/local

then follow Install in the README. To upgrade: service legion stop, unpack as above, service legion start; running containers are adopted. Upgrade managers one at a time, then workers (see Versions in the design); the upgrade path from the release before is tested on every release.

Check the download with sha256 -c $(cat legion-0.1.19-freebsd15-amd64.tar.xz.sha256 | cut -d ' ' -f 1) legion-0.1.19-freebsd15-amd64.tar.xz.