This module creates three load balancers for DC/OS.
This load balancer keeps an redundant entry point to the masters
this load balancer is used for internal communication to masters
This load balancer keeps a single entry point to your public agents no matter how many you're running.
module "lb-dcos" {
source = "dcos-terraform/lb-dcos/azurerm"
version = "~> 0.2.0"
cluster_name = "production"
location = ["North Europe"]
resource_group_name = "my-resource-group"
subnet_id = "subnet/id/the/load-balancer/should/be/in"
public_agents_additional_rules = [{ frontend_port = 8080 }]
}
Name | Description | Type | Default | Required |
---|---|---|---|---|
cluster_name | Name of the DC/OS cluster | string | n/a | yes |
location | Azure Region | string | n/a | yes |
masters_instance_nic_ids | List of master instance nic ids | list | n/a | yes |
name_prefix | Name Prefix | string | n/a | yes |
num_masters | Specify the amount of masters. For redundancy you should have at least 3 | string | n/a | yes |
num_public_agents | Specify the amount of public agents. These agents will host marathon-lb and edgelb | string | n/a | yes |
public_agents_instance_nic_ids | List of public agents instance nic ids | list | n/a | yes |
resource_group_name | Name of the azure resource group | string | n/a | yes |
subnet_id | Subnet ID | string | n/a | yes |
public_agents_additional_rules | Additional list of rules for public agents. These Rules are an additon to the default rules. | list | <list> |
no |
tags | Add custom tags to all resources | map | <map> |
no |
Name | Description |
---|---|
masters-internal.backend_address_pool | backend address pool |
masters-internal.lb_address | lb address |
masters.backend_address_pool | backend address pool |
masters.lb_address | lb address |
public-agents.backend_address_pool | backend address pool |
public-agents.lb_address | lb address |