def _configure_load_balancer(self):
    main_cidr = self.get_primary_machine_cidr()
    secondary_cidr = self.nodes.controller.get_provisioning_cidr()
    master_ips = (self.get_master_ips(self.api_client, self.id, main_cidr) + self.get_master_ips(self.api_client, self.id, secondary_cidr))
    worker_ips = self.get_worker_ips(self.api_client, self.id, main_cidr)
    load_balancer_ip = str((IPNetwork(main_cidr).ip + 1))
    tf = terraform_utils.TerraformUtils(working_dir=self.nodes.controller.tf_folder)
    lb_controller = LoadBalancerController(tf)
    lb_controller.set_load_balancing_config(load_balancer_ip, master_ips, worker_ips)
def _configure_load_balancer(self):
    main_cidr = self.get_primary_machine_cidr()
    secondary_cidr = self.nodes.controller.get_provisioning_cidr()
    master_ips = (self.get_master_ips(self.api_client, self.id, main_cidr) + self.get_master_ips(self.api_client, self.id, secondary_cidr))
    worker_ips = self.get_worker_ips(self.api_client, self.id, main_cidr)
    load_balancer_ip = str((IPNetwork(main_cidr).ip + 1))
    tf = terraform_utils.TerraformUtils(working_dir=self.nodes.controller.tf_folder)
    lb_controller = LoadBalancerController(tf)
    lb_controller.set_load_balancing_config(load_balancer_ip, master_ips, worker_ips)