1
0
Fork 0

feat: add node pool module and use it for new node pool

This commit is contained in:
Vojtěch Mareš 2024-11-23 09:32:12 +01:00
parent f916e715e5
commit b8b0a7ce22
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
5 changed files with 118 additions and 0 deletions

View file

@ -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"
}