Repository navigation
Legion 0.2.0
A web console that runs the cluster, image builds on the cluster, jailer merged in, the connections the nodes see, and legion top level with the console.
- Web console (CONSOLE.md, phases 2 to 7). Edit and deploy from YAML with the change shown first, forms for a service, Compose import and templates; alerts, usage history with charts, quotas, and log search; a Topology page that draws each namespace's services, tasks, routes and volumes, grouped by node; console settings and a banner; single sign-on with OIDC (users and groups in RoleBindings); several clusters in one console; plugins (pages from a Config, sandboxed); translations; accessibility checked with axe and the accessibility tree.
- Builds. Nodes labelled
legion.builder=truebuild images from a Git repository (Build,legion build-logs, the console's Build form), push them, and remove them afterwards. - jailer merged in. Building, running, testing and pushing OCI images of FreeBSD jails is now
legion buildandlegion local, on any FreeBSD host with or without a cluster, with signing, an SPDX SBOM and provenance. State moves from jailer's directory on first use. jailer's repository is archived. - Day-to-day operations.
legion restart,legion cronjob run, stop and start (stopped), pause and resume (paused), events per object (legion events), the load balancer's holder (legion lb), image details, scans (pkg audit) and what uses them, disk usage and pruning,legion diagnoseand support bundles (no Secrets), files andlegion cp, and stacks. - Connections seen.
legion connectionslists the connections the nodes' pf states hold between a namespace's services and from outside, each counted once across nodes; the console's Topology draws them as arcs, andlegion toplists them for a service. legion topdoes what the console does::runs anylegioncommand below the table,Eedits an object in$EDITORand applies it over the version read, and keys open diagnose, reach, connections, topology, audit, usage, images, snapshots, backup, files and build logs.legion topologyprints a namespace as the console's Topology draws it.- Upgrading: agents speak protocol 3 (pause); upgrade managers first, one at a time, then workers. The upgrade from 0.1.19 is tested.
Qualified
On FreeBSD 15.1-RELEASE-p6 amd64, three KVM VMs (lab base 5): the full manifest at profile cluster on 31f0743, 91 of 91 steps passed, nothing left behind. The port sysutils/legion passed poudriere testport on 15.1-RELEASE-p7 amd64. What legion local signs and attests was checked with cosign 3.1.3 (signature, SLSA provenance and SPDX SBOM verified with the key and refused with another) and the SBOM with the SPDX validator, on v0.2.0. arm64: the aarch64 tarball is built from the tag on FreeBSD 15.1-RELEASE-p6 arm64 (a VM), and its unit tests pass there (926, none failed); arm64 has not been through the lab's privileged and cluster tests, so it is not yet called supported.
Install
On FreeBSD 15 for amd64 (or aarch64, with that tarball), as root:
tar -xf legion-0.2.0-freebsd15-amd64.tar.xz --strip-components 1 -C /usr/localthen 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).
Check the download with sha256 -c $(cat legion-0.2.0-freebsd15-amd64.tar.xz.sha256 | cut -d ' ' -f 1) legion-0.2.0-freebsd15-amd64.tar.xz.