feat: compute subnet

This commit is contained in:
2025-12-30 12:38:53 -05:00
parent 1e17d87b4f
commit 70735d8f22
3 changed files with 22 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ resource "hcloud_ssh_key" "main" {
// The Jumphost/NAT, to interact and provide internet access to the cluster.
resource "hcloud_server" "nat" {
name = "Cluster NAT"
name = "nat"
image = "debian-12"
server_type = "cx23"
placement_group_id = hcloud_placement_group.group.id
@@ -25,7 +25,10 @@ resource "hcloud_server" "nat" {
public_net {
ipv4_enabled = true
ipv6_enabled = false
}
depends_on = [hcloud_network_subnet.subnet]
}
// Private compute instances.
@@ -41,4 +44,10 @@ resource "hcloud_server" "server" {
network_id = hcloud_network.net.id
ip = each.value
}
public_net {
ipv4_enabled = false
ipv6_enabled = false
}
depends_on = [hcloud_network_subnet.subnet]
}