From e528577670596f8592d7523da5d0828e9710fa85 Mon Sep 17 00:00:00 2001 From: Ali Mukadam Date: Sat, 22 Jul 2023 11:50:27 +1000 Subject: [PATCH] fix: missing lb rule so load balancers become healthy Signed-off-by: Ali Mukadam --- modules/network/nsg-workers.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/network/nsg-workers.tf b/modules/network/nsg-workers.tf index 698442f7..a89a4373 100644 --- a/modules/network/nsg-workers.tf +++ b/modules/network/nsg-workers.tf @@ -61,7 +61,7 @@ locals { }, } : {}, - var.allow_node_port_access && local.int_lb_nsg_enabled ? { + local.int_lb_nsg_enabled ? { "Allow TCP ingress to workers from internal load balancers" : { protocol = local.tcp_protocol, port_min = local.node_port_min, port_max = local.node_port_max, source = local.int_lb_nsg_id, source_type = local.rule_type_nsg, }, @@ -70,7 +70,7 @@ locals { }, } : {}, - var.allow_node_port_access && local.pub_lb_nsg_enabled ? { + local.pub_lb_nsg_enabled ? { "Allow TCP ingress to workers from public load balancers" : { protocol = local.tcp_protocol, port_min = local.node_port_min, port_max = local.node_port_max, source = local.pub_lb_nsg_id, source_type = local.rule_type_nsg, },