github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/website/source/docs/providers/clc/r/load_balancer_pool.html.markdown (about) 1 --- 2 layout: "clc" 3 page_title: "clc: clc_load_balancer_pool" 4 sidebar_current: "docs-clc-resource-load-balancer-pool" 5 description: |- 6 Manages a CLC load balancer pool. 7 --- 8 9 # clc_load_balancer_pool 10 11 Manages a CLC load balancer pool. Manage related frontend with [clc_load_balancer](load_balancer.html) 12 13 See also [Complete API documentation](https://www.ctl.io/api-docs/v2/#shared-load-balancer). 14 15 ## Example Usage 16 17 18 ```hcl 19 # Provision a load balancer pool 20 resource "clc_load_balancer_pool" "pool" { 21 data_center = "${clc_group.frontends.location_id}" 22 load_balancer = "${clc_load_balancer.api.id}" 23 method = "roundRobin" 24 persistence = "standard" 25 port = 80 26 27 nodes { 28 status = "enabled" 29 ipAddress = "${clc_server.node.0.private_ip_address}" 30 privatePort = 3000 31 } 32 33 nodes { 34 status = "enabled" 35 ipAddress = "${clc_server.node.1.private_ip_address}" 36 privatePort = 3000 37 } 38 } 39 40 output "pool" { 41 value = "${join(" ", clc_load_balancer.pool.nodes)}" 42 } 43 ``` 44 45 46 ## Argument Reference 47 48 The following arguments are supported: 49 50 * `load_balancer` - (Required, string) The id of the load balancer. 51 * `data_center` - (Required, string) The datacenter location for this pool. 52 * `port` - (Required, int) Either 80 or 443 53 * `method` - (Optional, string) The configured balancing method. Either 54 "roundRobin" (default) or "leastConnection". 55 * `persistence` - (Optional, string) The configured persistence 56 method. Either "standard" (default) or "sticky". 57 * nodes - (Optional) See [Nodes](#nodes) below for details. 58 59 60 <a id="nodes"></a> 61 ## Nodes 62 63 64 `nodes` is a block within the configuration that may be repeated to 65 specify connected nodes on this pool. Each `nodes` block supports the 66 following: 67 68 * `ipAddress` (Required, string) The destination internal ip of pool node. 69 * `privatePort` (Required, int) The destination port on the pool node. 70 * `status` (Optional, string) Either "enabled" or "disabled".