feat: compute subnet
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user