| commit | a9b060b0bf7d965c7f04f1d005d7f3767715d5bc | [log] [tgz] |
|---|---|---|
| author | Jan Schär <jan@monogon.tech> | Wed Aug 07 10:42:29 2024 +0200 |
| committer | Jan Schär <jan@monogon.tech> | Wed Aug 21 12:34:45 2024 +0000 |
| tree | 3f04781571d00e3b9640bb24da27cd0c7b6c121a | |
| parent | 397f7eaa1e98554f8b9fed2c748e492bf739027b [diff] |
m/test/launch: allow specifying launch parameters This adds flags to the launch-cluster command for specifying the size of the cluster, tpm and storage security configuration, number of CPUs and RAM size for all nodes, and assigning roles to specific nodes. As an example, the following command launches a cluster with tpm disabled, 4 nodes, 2 CPUs and 4 GiB of RAM on each node, and assigns the Kubernetes Worker role to all except the first node: bazel run //metropolis:launch-cluster -- -tpm-mode=disabled \ -num-nodes=4 -cpu=2 -ram=4G -kubernetes-worker=1-3 The default storage security policy was changed to insecure, as this speeds up cluster launch. The cluster configuration flags are defined in a new separate package to avoid code duplication. Fixes: https://github.com/monogon-dev/monogon/issues/315 Change-Id: Icf8b7fcbd6e609f4785b2a60ce5e7be14b641884 Reviewed-on: https://review.monogon.dev/c/monogon/+/3307 Reviewed-by: Serge Bazanski <serge@monogon.tech> Tested-by: Jenkins CI
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! In the meantime, join us on Matrix (#monogon-os-community:matrix.org) or Discord.
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.
The source code lives in //metropolis (Metropolis is the codename of Monogon OS).
See the //metropolis/README.md for a developer quick start guide, or see the Monogon OS Handbook for user documentation.