Skip to content

Commit

Permalink
Use worker nodes as router backends if no infra nodes (e.g. on OKE)
Browse files Browse the repository at this point in the history
  • Loading branch information
haasad committed May 3, 2024
1 parent b67c80b commit ebcc70c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module "lb" {
additional_networks = var.additional_lb_networks
use_existing_vips = var.use_existing_vips

router_backends = module.infra.ip_addresses[*]
router_backends = var.infra_count > 0 ? module.infra.ip_addresses[*] : module.worker.ip_addresses[*]
bootstrap_node = var.bootstrap_count > 0 ? cidrhost(var.privnet_cidr, 10) : ""
lb_cloudscale_api_secret = var.lb_cloudscale_api_secret
hieradata_repo_user = var.hieradata_repo_user
Expand Down

0 comments on commit ebcc70c

Please sign in to comment.