feat: add a test k3s cluster running on kubevirt

This commit is contained in:
Ryan Yin
2024-03-23 02:05:54 +08:00
parent c258b3b1c8
commit 2319300f48
13 changed files with 338 additions and 26 deletions

View File

@@ -101,6 +101,22 @@
iface = "ens18";
ipv4 = "192.168.5.113";
};
k3s-test-1-master-1 = {
# KubeVirt VM
iface = "eth1";
ipv4 = "192.168.5.114";
};
k3s-test-1-master-2 = {
# KubeVirt VM
iface = "eth1";
ipv4 = "192.168.5.115";
};
k3s-test-1-master-3 = {
# KubeVirt VM
iface = "eth1";
ipv4 = "192.168.5.116";
};
};
hostsInterface =
@@ -109,10 +125,12 @@
key: val: {
interfaces."${val.iface}" = {
useDHCP = false;
ipv4.addresses = [{
inherit prefixLength;
address = val.ipv4;
}];
ipv4.addresses = [
{
inherit prefixLength;
address = val.ipv4;
}
];
};
}
)