diff --git a/terraform/loadbalancer.tf b/terraform/loadbalancer.tf index cec66e1a53ac91db0c4ea438dbd0ee49cca87903..375ac8154057cc48263241d15f418fad2a702dae 100644 --- a/terraform/loadbalancer.tf +++ b/terraform/loadbalancer.tf @@ -11,12 +11,6 @@ resource "hcloud_load_balancer_target" "lb_target" { use_private_ip = false } -resource "hcloud_load_balancer_network" "lb_network" { - load_balancer_id = hcloud_load_balancer.lb.id - subnet_id = hcloud_network_subnet.subnet.id - ip = "172.16.0.254" -} - resource "hcloud_load_balancer_service" "lb_api" { load_balancer_id = hcloud_load_balancer.lb.id protocol = "tcp" diff --git a/terraform/main.tf b/terraform/main.tf index 6b0fbf68b107dd5352faad865dbeaa45ab04bd65..40685a3f0dde1314e3044f138497db76279de5a0 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -22,7 +22,6 @@ module "nodes" { placement_group_id = hcloud_placement_group.k8s.id ssh_keys = data.hcloud_ssh_keys.all_keys.ssh_keys.*.name server_type = "cx21" - # subnet = hcloud_network_subnet.subnet.id user_data = file("templates/cloud-init.tpl") enable_IPv6 = false } @@ -42,6 +41,5 @@ module "workers" { placement_group_id = hcloud_placement_group.k8s.id ssh_keys = data.hcloud_ssh_keys.all_keys.ssh_keys.*.name server_type = "cx21" - # subnet = hcloud_network_subnet.subnet.id user_data = file("templates/cloud-init.tpl") } diff --git a/terraform/network.tf b/terraform/network.tf deleted file mode 100644 index 1bb01681c4e1e2534ab19d93395137f82242fc90..0000000000000000000000000000000000000000 --- a/terraform/network.tf +++ /dev/null @@ -1,11 +0,0 @@ -resource "hcloud_network" "network" { - name = var.dns_domain - ip_range = var.network_cidr -} - -resource "hcloud_network_subnet" "subnet" { - network_id = hcloud_network.network.id - type = "server" - network_zone = "eu-central" - ip_range = var.subnet_cidr -}