-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s.tf
113 lines (100 loc) · 2.17 KB
/
k8s.tf
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
resource "proxmox_vm_qemu" "k8s_control" {
count = 2
name = "k8s-control-${count.index}"
vmid = 500 + count.index
target_node = "proxmox"
machine = "q35"
cpu = "x86-64-v2-AES"
cores = 2
memory = 4096
scsihw = "virtio-scsi-single"
os_type = "l26"
bios = "ovmf"
boot = "order=scsi0;ide2"
agent = 1
onboot = true
full_clone = false
define_connection_info = false
automatic_reboot = false
vga {
type = "virtio"
}
serial {
id = 0
type = "socket"
}
disks {
scsi {
scsi0 {
disk {
storage = "local-lvm"
size = "64G"
iothread = true
replicate = true
}
}
}
ide {
ide2 {
cdrom {
passthrough = false
}
}
}
}
network {
model = "virtio"
bridge = "vmbr0"
firewall = true
}
}
resource "proxmox_vm_qemu" "k8s_worker" {
count = 2
name = "k8s-worker-${count.index}"
vmid = 550 + count.index
target_node = "proxmox"
machine = "q35"
cpu = "x86-64-v2-AES"
cores = 8
memory = 16384
scsihw = "virtio-scsi-single"
os_type = "l26"
bios = "ovmf"
boot = "order=scsi0;ide2"
agent = 1
onboot = true
full_clone = false
define_connection_info = false
automatic_reboot = false
vga {
type = "virtio"
}
serial {
id = 0
type = "socket"
}
disks {
scsi {
scsi0 {
disk {
storage = "local-lvm"
size = "256G"
iothread = true
replicate = true
}
}
}
ide {
ide2 {
cdrom {
passthrough = false
}
}
}
}
network {
model = "virtio"
bridge = "vmbr0"
firewall = true
}
}