-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
111 lines (98 loc) · 2.53 KB
/
main.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
module "talos" {
source = "./talos"
providers = {
proxmox = proxmox
}
image = {
version = "v1.9.5"
schematic = file("${path.module}/talos/image/schematic.yaml")
}
cilium = {
install = file("${path.module}/talos/inline-manifests/cilium-install.yaml")
values = file("${path.module}/kubernetes/cilium/values.yml")
}
cluster = {
name = "entenhausen"
endpoint = "10.200.4.100"
gateway = "10.200.4.1"
talos_version = "v1.9.5"
proxmox_cluster = "entenhausen"
}
oidc = {
client_id = var.oidc.client_id
groups_claim = var.oidc.groups_claim
groups_prefix = var.oidc.groups_prefix
issuer_url = var.oidc.issuer_url
username_claim = var.oidc.username_claim
}
cloudflared = {
token = var.cloudflared.token
metrics = var.cloudflared.metrics
edge_ip = var.cloudflared.edge_ip
}
nodes = {
"duesentrieb" = {
host_node = "pve-01"
machine_type = "controlplane"
ip = "10.200.4.100"
mac_address = "BC:24:11:2E:C8:00"
vm_id = 800
cpu = 8
ram_dedicated = 4096
}
"dagobert" = {
host_node = "pve-01"
machine_type = "controlplane"
ip = "10.200.4.101"
mac_address = "BC:24:11:2E:C8:01"
vm_id = 801
cpu = 4
ram_dedicated = 4096
}
"donald" = {
host_node = "pve-01"
machine_type = "controlplane"
ip = "10.200.4.102"
mac_address = "BC:24:11:2E:C8:02"
vm_id = 802
cpu = 4
ram_dedicated = 4096
}
"tick" = {
host_node = "pve-01"
machine_type = "worker"
ip = "10.200.4.50"
mac_address = "BC:24:11:2E:08:00"
vm_id = 810
cpu = 8
ram_dedicated = 4096
}
"trick" = {
host_node = "pve-01"
machine_type = "worker"
ip = "10.200.4.51"
mac_address = "BC:24:11:2E:08:01"
vm_id = 811
cpu = 8
ram_dedicated = 4096
}
"track" = {
host_node = "pve-01"
machine_type = "worker"
ip = "10.200.4.52"
mac_address = "BC:24:11:2E:08:02"
vm_id = 812
cpu = 8
ram_dedicated = 4096
}
}
}
module "proxmox_csi_plugin" {
depends_on = [module.talos]
source = "./bootstrap/proxmox-csi-plugin"
providers = {
proxmox = proxmox
kubernetes = kubernetes
}
proxmox = var.proxmox
}