Skip to content

Legion 0.2.0

Choose a tag to compare

@grepjava grepjava released this 18 Nov 13:38
· 447 commits to main since this release

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=true build 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 build and legion 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 diagnose and support bundles (no Secrets), files and legion cp, and stacks.
  • Connections seen. legion connections lists 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, and legion top lists them for a service.
  • legion top does what the console does: : runs any legion command below the table, E edits an object in $EDITOR and applies it over the version read, and keys open diagnose, reach, connections, topology, audit, usage, images, snapshots, backup, files and build logs. legion topology prints 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/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).

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.