Resource: dcos_edgelb_v2_pool
Provides a resource …
Example Usage
# an example
provider "dcos" {
cluster = "my-cluster"
}
Argument Reference
The following arguments are supported
secret_name
(Optional) Service account secret name for pool framework authentication. If omitted or left blank, the service account used to install Edge-LB will be used if presentconstraints
(Optional) Marathon style constraints for load balancer instance placementsecrets
(Optional) DC/OS secretssecret
(Optional) Secret namefile
(Optional) File name. The file “myfile” will be found at “$SECRETS/myfile”environment_variables
(Optional) Environment variables to pass to tasks. Prefix with “ELBFILE” and it will be written to a file. For example, the contents of “ELB_FILE_MYENV” will be written to “$ENVFILE/ELB_FILE_MYENV”auto_certificate
(Optional) Autogenerate a self-signed SSL/TLS certificate. It is not generated by default. It will be written to “$AUTOCERT”haproxy_backends
(Optional) Virtual networks to joinservices
(Optional)mesos_task_id
(Optional) Mesos task IDendpoint_type
(Optional)endpoint_misc_str
(Optional) Append arbitrary string to add to the end of the “server” directiveendpoint_port
(Optional)endpoint_all_ports
(Optional)endpoint_check_enabled
(Optional)endpoint_check_custom_str
(Optional)marathon_service_id
(Optional) Marathon pod or application IDmarathon_service_id_pattern
(Optional)marathon_container_name
(Optional) Marathon pod container name, optional unless using Marathon podsmesos_framework_name
(Optional) Mesos framework namemesos_framework_id
(Optional) Mesos framework IDmesos_framework_id_pattern
(Optional)endpoint_address
(Optional) Server address override, can be used to specify a cluster internal address such as a VIPmarathon_container_name_pattern
(Optional)mesos_framework_name_pattern
(Optional)mesos_task_name
(Optional) Mesos task namemesos_task_name_pattern
(Optional)mesos_task_id_pattern
(Optional)endpoint_port_name
(Optional)name
(Optional) The name of the virtual network to join.balance
(Optional) Load balancing strategy. e.g. roundrobin, leastconn, etc.custom_check_httpchk
(Optional) The name of the virtual network to join.rewrite_http_request_set_host_header
(Optional) Set Host headerrewrite_http_sticky_custom_str
(Optional) The name of the virtual network to join.custom_check_httpchk_misc_str
(Optional) The name of the virtual network to join.protocol
(Optional) Protocolrewrite_http_to_path
(Optional) The name of the virtual network to join.rewrite_http_request_x_forwarded_proto_https_if_tls
(Optional) Set X-Forwarded-Port HTTPS if TLSrewrite_http_sticky_enabled
(Optional) The name of the virtual network to join.custom_check_ssl_hello_chk
(Optional) The name of the virtual network to join.custom_check_misc_str
(Optional) The name of the virtual network to join.rewrite_http_request_forwardfor
(Optional) Set X-Forwarded-Forrewrite_http_request_rewrite_path
(Optional) Rewrite Pathrewrite_http_response_rewrite_location
(Optional) The name of the virtual network to join.misc_strs
(Optional) Additional template lines inserted before serversrewrite_http_host
(Optional) The name of the virtual network to join.rewrite_http_from_path
(Optional) The name of the virtual network to join.rewrite_http_request_x_forwarded_port
(Optional) Set X-Forwarded-Portpool_healthcheck_interval
(Optional) Pool tasks healthcheck interval (in seconds)pool_healthcheck_timeout
(Optional) Maximum amount of time that Mesos will wait for the healthcheck container to finish executingname
(Required) The pool nameprincipal
(Optional) Mesos principal for pool framework authentication. If omitted or left blank, the service account used to install Edge-LB will be used if presentmem
(Optional) Memory requirements (in MB)role
(Optional) Mesos role for load balancers. Defaults to “slave_public” so that load balancers will be run on public agents. Use “*” to run load balancers on private agents. Read more about Mesos roles at http://mesos.apache.org/documentation/latest/roles/cpus
(Optional) CPU requirementsnamespace
(Optional) The DC/OS space (sometimes also referred to as a “group”).disk
(Optional) Disk size (in MB)pool_count
(Optional) Number of load balancer instances in the poolports
(Optional) Override ports to allocate for each load balancer instance. Defaults to {{haproxy.frontends[].bindPort}} and {{haproxy.stats.bindPort}}. Use this field to pre-allocate all needed ports with or without the frontends present. For example: [80, 443, 9090]. If the length of the ports array is not zero, only the ports specified will be allocated by the pool schedulervirtual_networks
(Optional) Virtual networks to joinname
(Optional) The name of the virtual network to join.labels
(Optional) Labels to pass to the virtual network plugin.haproxy_frontends
(Optional) Virtual networks to joinname
(Optional) Defaults to frontend{{bindAddress}}{{bindPort}}bind_port
(Optional) The port (e.g. 80 for HTTP or 443 for HTTPS) that this frontend will bind tobind_modifier
(Optional) Additional text to put in the bind fieldcertificates
(Optional)redirect_to_https_except
(Optional)host
(Optional) Match on hostpath_beg
(Optional) Match on pathlinked_backend_default_backend
(Optional) This is default backend that is routed to if none of the other filters are matched.bind_address
(Optional) Only use characters that are allowed in the frontend name. Known invalid frontend name characters include “*“, “[“, and “]”misc_strs
(Optional) Additional template lines inserted before use_backendprotocol
(Optional) Protocollinked_backend_map
(Optional) This is an optional field that specifies a mapping to various backends. These rules are applied in order.backend
(Optional)host_eq
(Optional)host_reg
(Optional)path_beg
(Optional)path_end
(Optional)path_reg
(Optional)pool_healthcheck_grace_period
(Optional) Pool tasks healthcheck grace period (in seconds)pool_healthcheck_max_fail
(Optional) Pool tasks healthcheck maximum number of consecutive failures before declaring as unhealthy
Attributes Reference
addition to all arguments above, the following attributes are exported:
gid
(Optional) User ID to apply the grant on.