FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

clc_load_balancer_pool

Manages a CLC load balancer pool. Manage related frontend with clc_load_balancer

See also Complete API documentation.

Example Usage

# Provision a load balancer pool
resource "clc_load_balancer_pool" "pool" {
  data_center = "${clc_group.frontends.location_id}"
  load_balancer = "${clc_load_balancer.api.id}"
  method = "roundRobin"
  persistence = "standard"
  port = 80
  nodes
    {
      status = "enabled"
      ipAddress = "${clc_server.node.0.private_ip_address}"
      privatePort = 3000
    }
  nodes
    {
      status = "enabled"
      ipAddress = "${clc_server.node.1.private_ip_address}"
      privatePort = 3000
    }
}

output "pool" {
  value = "$join(" ", clc_load_balancer.pool.nodes)}"
}

Argument Reference

The following arguments are supported:

Nodes

nodes is a block within the configuration that may be repeated to specify connected nodes on this pool. Each nodes block supports the following:


See the source of this document at Terraform.io