This commit is contained in:
39
src/etc/config.jsonnet
Normal file
39
src/etc/config.jsonnet
Normal 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)
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user