Skip to content

Commit

Permalink
Merge pull request #82 from appuio/oke-worker-router-backends
Browse files Browse the repository at this point in the history
Use worker nodes as router backends if no infra nodes are provisioned
  • Loading branch information
haasad authored May 6, 2024
2 parents b67c80b + ebcc70c commit 3826097
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 3826097

Please sign in to comment.