Skip to content

dcos-terraform/terraform-azurerm-lb-dcos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Azure LB DC/OS

This module creates three load balancers for DC/OS.

External masters load balancer

This load balancer keeps an redundant entry point to the masters

Internal masters load balancer

this load balancer is used for internal communication to masters

External public agents load balancer

This load balancer keeps a single entry point to your public agents no matter how many you're running.

EXAMPLE

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 }]
}

Inputs

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

Outputs

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

About

This module creates three load balancers for DC/OS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages