Initial commit
Some checks failed
Build package / build-package (push) Failing after 1m36s

This commit is contained in:
2024-12-16 20:28:52 +08:00
commit 0242c4f3e0
9 changed files with 224 additions and 0 deletions

39
src/etc/config.jsonnet Normal file
View File

@@ -0,0 +1,39 @@
{
[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)
]
}