Consul
Serf parameters for Consul agent configuration files
The page provides reference information for Serf parameters in a Consul agent configuration file.
Serf parameters
serf_lan
- The address to bind to for Serf LAN gossip communications. The value is an IP address that should be reachable by all other LAN nodes in the cluster. By default, the value follows the same rules asbind
, and if this is not specified, the value ofbind
is used. You can dynamically define this parameter with a [go-sockaddr] template that is resolved at runtime. Equivalent to the-serf-lan-bind
command-line flag. Do not mistake this parameter forports.serf_lan
.serf_lan_allowed_cidrs
- Allowed CIDRs to accept incoming connections for LAN Serf from several networks. This parameter supports multiple values. Specify networks with CIDR notation, such as192.168.1.0/24
. Equivalent to the-serf-lan-allowed-cidrs
command-line flag.serf_wan
- The address thatto bind to for Serf WAN gossip communications. By default, the value follows the same rules asbind
, and if this is not specified, he value ofbind
is used.You can dynamically define this parameter with a [go-sockaddr] template that is resolved at runtime. Equivalent to the-serf-wan-bind
command-line flag.serf_wan_allowed_cidrs
- Allowed CIDRs allow to accept incoming connections for WAN Serf from several networks. This parameter supports multiple values. Specify networks with CIDR notation, such as192.168.1.0/24
. Equivalent to the-serf-wan-allowed-cidrs
command-lin flag.