Skip to content

Commit ebcc70c

Browse files
committed
Use worker nodes as router backends if no infra nodes (e.g. on OKE)
1 parent b67c80b commit ebcc70c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lb.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module "lb" {
1313
additional_networks = var.additional_lb_networks
1414
use_existing_vips = var.use_existing_vips
1515

16-
router_backends = module.infra.ip_addresses[*]
16+
router_backends = var.infra_count > 0 ? module.infra.ip_addresses[*] : module.worker.ip_addresses[*]
1717
bootstrap_node = var.bootstrap_count > 0 ? cidrhost(var.privnet_cidr, 10) : ""
1818
lb_cloudscale_api_secret = var.lb_cloudscale_api_secret
1919
hieradata_repo_user = var.hieradata_repo_user

0 commit comments

Comments
 (0)