mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-12 16:00:25 -04:00
1.7 KiB
1.7 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| oneandone | 1&1: oneandone_loadbalancer | docs-oneandone-resource-loadbalancer | Creates and manages 1&1 Load Balancer. |
oneandone_server
Manages a Load Balancer on 1&1
Example Usage
resource "oneandone_loadbalancer" "lb" {
name = "test_lb"
method = "ROUND_ROBIN"
persistence = true
persistence_time = 60
health_check_test = "TCP"
health_check_interval = 300
datacenter = "GB"
rules = [
{
protocol = "TCP"
port_balancer = 8080
port_server = 8089
source_ip = "0.0.0.0"
},
{
protocol = "TCP"
port_balancer = 9090
port_server = 9099
source_ip = "0.0.0.0"
}
]
}
Argument Reference
The following arguments are supported:
name- (Required) The name of the load balancer.description- (Optional) Description for the load balancermethod- (Required) Balancing procedure Can beROUND_ROBINorLEAST_CONNECTIONSdatacenter- (Optional) Location of desired 1and1 datacenter. Can beDE,GB,USorESpersistence- (Optional) True/false defines whether persistence should be turned on/offpersistence_time- (Optional) Persistence duration in secondshealth_check_test- (Optional) Can beTCPorICMP.health_check_test_interval- (Optional)health_check_test_path- (Optional)health_check_test_parser- (Optional)
Loadbalancer rules (rules) support the following
protocol- (Required) The protocol for the rule. Allowed values areTCP,UDP,TCP/UDP,ICMPandIPSEC.port_balancer- (Required)port_server- (Required)source_ip- (Required)