modules/cluster: switch to skyflake microvm / on rbd
This commit is contained in:
parent
5742a7da5f
commit
65308a90cf
|
@ -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 = {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue