Skip to content

Commit

Permalink
add sshd load balancer to backend pool
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Dec 17, 2024
1 parent 41a487a commit 51059c2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions terraform/infrastructure/azure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,11 @@ module "scale_set_group" {
image_id = var.image_id
network_security_group_id = azurerm_network_security_group.security_group.id
subnet_id = azurerm_subnet.node_subnet.id
backend_address_pool_ids = each.value.role == "control-plane" ? [module.loadbalancer_backend_control_plane.backendpool_id] : []
marketplace_image = var.marketplace_image
backend_address_pool_ids = each.value.role == "control-plane" ? concat(
[module.loadbalancer_backend_control_plane.backendpool_id],
var.emergency_ssh ? [module.loadbalancer_backend_control_plane_ssh[0].backendpool_id] : []
) : []
marketplace_image = var.marketplace_image
}

module "jump_host" {
Expand Down

0 comments on commit 51059c2

Please sign in to comment.