Documentation
¶
Overview ¶
loadbalancer defines haproxy configuration that is used for the cluster load balancer. it is based on code from capd, with specific adjustments to work in LXC environments.
Index ¶
Constants ¶
View Source
const DefaultTemplate = `` /* 1097-byte string literal not displayed */
DefaultTemplate is the loadbalancer config template.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BackendServer ¶
BackendServer defines a loadbalancer backend.
type ConfigData ¶
type ConfigData struct {
FrontendControlPlanePort string
BackendControlPlanePort string
BackendServers map[string]BackendServer
IPv6 bool
}
ConfigData is supplied to the loadbalancer config template.
Click to show internal directories.
Click to hide internal directories.