commit | 8456ddf02aea2e1015805f18ef1871812c5cb7f6 | [log] [tgz] |
---|---|---|
author | Serge Bazanski <serge@monogon.tech> | Mon Oct 30 18:56:59 2023 +0100 |
committer | Serge Bazanski <serge@monogon.tech> | Mon Oct 30 22:12:01 2023 +0000 |
tree | 7ea30de34d2ed42e2da1c044fb62576464b4e2cc | |
parent | 7acd92dae19109fff8e6036d0a7fcd64aa1851c1 [diff] |
metropolis: implement node Deletion and framework for Decommissioning This implements the basic ability to remove nodes from a cluster. We prepare for a more complex workflow involving multi-sage decommissioning, but first implement the 'worst case' workflow, in which a node needs to be deleted if it hasn't been gracefully decommissioned. This is what we currently need most in practice, as we have node failures we'd like to deal with. The Delete functionality is still not fully complete though, as we're still accepting client certificates from decommissioned nodes. But we'll fix that in an upcoming CR. Change-Id: I7322cb1464a9e5bc924363321534033dcc8a6246 Reviewed-on: https://review.monogon.dev/c/monogon/+/2270 Tested-by: Jenkins CI Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
This is the main repository containing the source code for the Monogon Platform.
This is pre-release software - take a look, and check back later!
Our build environment is self-contained and requires only minimal host dependencies:
/dev/kvm
(if you want to run tests).Our docs assume that Bazelisk is available as bazel
on your PATH.
Refer to SETUP.md for detailed instructions.
Build CLI and node image:
bazel build //metropolis/cli/dbg //:launch --config dbg
Launch an ephemeral test node:
bazel test //:launch --config dbg --test_output=streamed
Run a kubectl command while the test is running:
bazel-bin/metropolis/cli/dbg/dbg_/dbg kubectl describe node
Run full test suite:
bazel test --config dbg //...