feat: add node pool module and use it for new node pool
This commit is contained in:
parent
f916e715e5
commit
b8b0a7ce22
5 changed files with 118 additions and 0 deletions
17
machines.tf
17
machines.tf
|
|
@ -94,3 +94,20 @@ resource "hcloud_server" "cthulhu_workers" {
|
|||
ip = cidrhost(hcloud_network_subnet.workers.ip_range, count.index + 1)
|
||||
}
|
||||
}
|
||||
|
||||
module "workers_v2" {
|
||||
source = "./modules/node-pool/v1"
|
||||
|
||||
network_id = hcloud_network.cthulhu.id
|
||||
placement_group_id = hcloud_placement_group.cthulhu_workers.id
|
||||
ssh_key_ids = [data.hcloud_ssh_key.vojtechmares.id]
|
||||
|
||||
size = 3
|
||||
server_type = "cx32"
|
||||
image = "rocky-9"
|
||||
location = "fsn1"
|
||||
|
||||
subnet_cidr = "172.16.11.0/24"
|
||||
|
||||
cluster_name = "cthulhu"
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue