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;
|
inherit mountPoint source;
|
||||||
}) config.deployment.extraShares;
|
}) config.deployment.extraShares;
|
||||||
volumes = [ {
|
volumes = [ {
|
||||||
|
image = config.skyflake.deploy.rbds.root.path;
|
||||||
|
mountPoint = "/";
|
||||||
|
# don't let microvm.nix create an image file
|
||||||
|
autoCreate = false;
|
||||||
|
size = 0;
|
||||||
|
} {
|
||||||
image = writableStoreOverlayImage;
|
image = writableStoreOverlayImage;
|
||||||
mountPoint = config.microvm.writableStoreOverlay;
|
mountPoint = config.microvm.writableStoreOverlay;
|
||||||
size = 8 * 1024;
|
size = 8 * 1024;
|
||||||
|
@ -84,6 +90,12 @@ in
|
||||||
weight = 10 + i;
|
weight = 10 + i;
|
||||||
}) 10);
|
}) 10);
|
||||||
};
|
};
|
||||||
|
deploy.rbds.root = {
|
||||||
|
pool = "microvms";
|
||||||
|
namespace = "${user}-${repo}";
|
||||||
|
name = "${vmName}-root";
|
||||||
|
size = config.deployment.rootSize;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
|
|
@ -87,6 +87,9 @@ in {
|
||||||
mons = [ "server8" "server9" "server10" ];
|
mons = [ "server8" "server9" "server10" ];
|
||||||
mgrs = mons;
|
mgrs = mons;
|
||||||
mdss = mons;
|
mdss = mons;
|
||||||
|
rbdPools.microvms = {
|
||||||
|
params = { size = 2; class = "ssd"; };
|
||||||
|
};
|
||||||
|
|
||||||
monKeyring = config.sops.secrets."ceph/monKeyring".path;
|
monKeyring = config.sops.secrets."ceph/monKeyring".path;
|
||||||
adminKeyring = config.sops.secrets."ceph/adminKeyring".path;
|
adminKeyring = config.sops.secrets."ceph/adminKeyring".path;
|
||||||
|
|
Loading…
Reference in New Issue