The operations model (design, steps 1 and 2 done)¶
Who applies what to a cluster, from where: git says what, reconcilers apply it, an admin bootstraps and takes over when needed. Discussed on 2026-11-18 and 19, after frictions between three ways of applying that each had their own source of truth. It supersedes the delivery pipeline of continuous delivery (its chain stays: its builds become a reconciler's). Its rule, absolute since 2026-11-19: git is the only source of truth, an admin bootstraps; it holds for every design.
Where things stood (2026-11-18)¶
Three appliers, each reading its own source:
| Who applies | What | From where |
|---|---|---|
| Flux | the tenants' declaration, the cluster's pages, the tenants' applications | the cluster's repository, each commit pushed |
| The operator, every 30 minutes | the servers' rotation, k8s/configure.yml without the credentials, Cluster API's providers |
ethere's code in its image, the inventory as it was deployed |
| An admin, from the workstation | the images, the tests, the credentials, the operator's deployment, a bootstrap, a restore | ethere as its checkout pins it, the inventory on its disk |
The wanted state lives in three places that nothing keeps in step, and every friction met came from there:
- A commit doesn't always deploy. A tenant's change pushed is applied; a new
refof ethere needs images built by hand, a run from the workstation and the operator redeployed. - Two versions undo each other. The operator applies its image's ethere: on 2026-11-18 it put the documentation server back on its older image three times, after rollouts made from the workstation only.
- A stale inventory. The operator applies the inventory it was deployed with: an admin's change of the members or of the registry's repositories is undone within 30 minutes.
- Flags by applier.
cluster_credentials,k8s_gateway_edges: what the operator can't do, because the credentials are an admin's. - Imperative configuration among declarative. Pocket ID's users are created and updated through its API, never deleted: a member removed keeps signing in.
Where things stand (2026-11-24)¶
| Who applies | What | From where |
|---|---|---|
| Flux | the tenants' declaration, the cluster's pages, the tenants' applications, the operator itself (its platform: the ethere the repository pins) | the cluster's repository on its own git servers (cluster.git), each commit pushed |
| The operator (TypeScript, operator.md) | the servers' rotation, k8s/configure.yml without the credentials, Cluster API's providers |
the cluster's repository: the commit Flux fetched, when it pins the operator's ethere |
| An admin, from the workstation | the images, the tests, the credentials, a bootstrap, a restore, a takeover (etherectl operator reconcile) |
ethere as its checkout pins it, the inventory on its disk; decisions as commits |
ethere's code lives on dampetra's git servers too (ethere.git, GitHub a mirror): Flux reads the operator's chart
there at the pinned commit. Left: the images built and published by hand (an admin's containers.yml,
images.yml, registry/release.yml), the servers' images not through the registry, the flags by applier.
The model¶
- Git says what. The cluster's repository is the only source of its wanted state: the ethere it pins (
ref), its inventory, its tenants, its pages. ethere's repository is the only source of the code: every commit ofethe.re, its tags. - Reconcilers apply it. Flux what is Kubernetes objects; the operator what needs playbooks or a cloud's API, reading the same repository (the artifact Flux already fetches: the documentation's server reads it so). The builder is a reconciler too: the state it makes true is "the artifacts of this commit exist", so it is the operator, its build role on in a cluster's inventory or not: every cluster is an ethere cluster like the others.
- An admin bootstraps, decides and takes over. The first images, the first cluster and the root secrets are an
admin's; a decision is a commit. Whatever a reconciler does, an admin can do by hand with the same playbooks
(
docs/dev/index.md's principle): a broken build, a broken cluster are taken over from the workstation, the build included. No chicken and egg.
The build role¶
One variable of a cluster's inventory turns its operator's build role on (and the registries it publishes to); the
cluster is otherwise an ethere cluster like any other. With it on, for each commit of ethe.re (and its tags, as
aliases):
- the images: the servers' (Exherbo,
images.yml), the operator's and the documentation's (containers.yml); - the tests (below);
- the artifacts published to the registries it is given: dampetra's first, a public one later, which any cluster consuming ethere's releases would read.
It is off where a cluster serves applications: dampetra's doesn't carry a build's load nor its rights. It is on in a
cluster with CPU and memory to spare and nothing else to serve: first a standalone cluster (the qemu provider,
docs/admin/standalone.md) on the workstation's host.
Every cluster reads its repository at the revision Flux has. A new ref whose artifacts are in its registry: Flux
moves its operator to it (done: its platform), the operator imports the servers' images into its Glance and rotates
them (step 3). Artifacts missing: it waits and says so (its status). It never applies an ethere other than the one
pinned.
Artifacts through registries¶
Every artifact goes through a registry, the servers' images too (their qcow2 as OCI artifacts), named by commit, the tags as aliases. Every cluster pulls them from its registry and imports the servers' images into its own Glance. The cluster building publishes to its own registry, which the others pull from (decided 2026-11-25: build-role.md): it holds no right on the clusters it builds for, neither a registry's nor a cloud's.
Tests¶
By the building operator too, on a test cloud, as today's cluster suites (tests/cluster/) do. A standalone
cluster's VMs can't host one (virtualisation nested once more): the test cloud would be the host's own, a Kolla
OpenStack in LXD the host's configuration deploys, as the test cloud's lxd backend does
(docs/admin/host-setup.md), which the operator reaches through its API. To settle: the suites run per commit (all, or by what changed:
tests/cluster/changed.js), the test cloud's capacity, its state between runs.
Signatures (later)¶
The building operator signs what it publishes with keys of its cluster's, their public part published; a cluster
deploys only signed artifacts of its ref.
Steps¶
- The operator reads its cluster's repository (done 2026-11-19): its
refand inventory from the GitRepository's artifact (the inventory followed, a commit applied); arefother than its image's reported, nothing applied. - The operator moves to a new
refwhose images are in its registry (done: by a Job on 2026-11-19, then, with the rule above, deployed by Flux on 2026-11-24): on the way, the cluster's git servers serve several repositories (git.md), dampetra's repository and ethere's code live there, and the operator's controller left Ansible (operator-controller.md). - The servers' images through the registry (its design): published as OCI artifacts, named by commit, imported into Glance by each cluster's operator, the servers following the pinned commit.
- The build role (its design): its variable, on in a standalone cluster on the workstation's
host (
forge.ethe.re), building each commit ofethe.reand publishing to its own registry, which dampetra's pulls from. - The tests by the building operator, on a Kolla test cloud in LXD on the host.
- The operator's derived credentials (
docs/admin/secrets.md): the root ones an admin's, created once, the flags by applier gone; declarative configuration where it is still imperative (Pocket ID's users). - Signatures, a public registry.
Until step 4, an admin builds a new ref's images and publishes them (registry/release.yml, the servers' images
into Glance) before moving the ref (operator.md).