Files
vm/src/etc/config.jsonnet
ytshih 0242c4f3e0
Some checks failed
Build package / build-package (push) Failing after 1m36s
Initial commit
2024-12-16 20:33:11 +08:00

40 lines
663 B
Jsonnet

{
[obj.name]:
default(obj.name)
+ resource(obj.cpu, obj.ram)
+ net(obj.mac)
+ monitor(obj.mac)
for obj in [
{
name: 'k0scontroller' + i,
cpu: 2,
ram: '2G',
mac: '08:00:00:20:01:1' + i,
}
for i in std.range(1, 3)
] + [
{
name: 'k0sworker' + i,
cpu: 4,
ram: '4G',
mac: '08:00:00:20:01:2' + i,
}
for i in std.range(1, 3)
] + [
{
name: 'ostest',
cpu: 4,
ram: '8G',
mac: '08:00:00:20:01:73',
},
] + [
{
name: 'test' + i,
cpu: 1,
ram: '2G',
mac: '08:00:00:20:00:7' + i,
}
for i in std.range(1, 9)
]
}