modules/cluster: switch to skyflake microvm / on rbd

This commit is contained in:
Astro 2023-05-19 21:48:48 +02:00
parent 5742a7da5f
commit 65308a90cf
2 changed files with 15 additions and 0 deletions

View File

@ -62,6 +62,12 @@ in
inherit mountPoint source;
}) config.deployment.extraShares;
volumes = [ {
image = config.skyflake.deploy.rbds.root.path;
mountPoint = "/";
# don't let microvm.nix create an image file
autoCreate = false;
size = 0;
} {
image = writableStoreOverlayImage;
mountPoint = config.microvm.writableStoreOverlay;
size = 8 * 1024;
@ -84,6 +90,12 @@ in
weight = 10 + i;
}) 10);
};
deploy.rbds.root = {
pool = "microvms";
namespace = "${user}-${repo}";
name = "${vmName}-root";
size = config.deployment.rootSize;
};
};
networking = {

View File

@ -87,6 +87,9 @@ in {
mons = [ "server8" "server9" "server10" ];
mgrs = mons;
mdss = mons;
rbdPools.microvms = {
params = { size = 2; class = "ssd"; };
};
monKeyring = config.sops.secrets."ceph/monKeyring".path;
adminKeyring = config.sops.secrets."ceph/adminKeyring".path;