-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
52 lines (47 loc) · 817 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import {createVM} from "./createVM"
// Kuberntes Cluster Definition
// VM ID Range 300-399
// Subnet 10.1.1.85-89
createVM({
name: "k3s-node-1",
vmId: 300,
templateId: 900,
vCpu: 4,
diskSize: 100,
maxMemory: 4096,
minMemory: 2048,
ipAddress: "10.10.1.85/24"
})
createVM({
name: "k3s-node-2",
vmId: 301,
templateId: 900,
vCpu: 4,
diskSize: 100,
maxMemory: 4096,
minMemory: 2048,
ipAddress: "10.10.1.86/24"
})
createVM({
name: "k3s-node-3",
vmId: 302,
templateId: 900,
vCpu: 4,
diskSize: 100,
maxMemory: 4096,
minMemory: 2048,
ipAddress: "10.10.1.87/24"
})
//Test VM
//ID Range: 600-699
//IP range: 90-99
createVM({
name: "test-vm-1",
vmId: 600,
templateId: 900,
vCpu: 4,
diskSize: 50,
maxMemory: 8192,
minMemory: 2048,
ipAddress: "10.10.1.70/24"
})