Documentation ¶
Overview ¶
Package loadbalancer contains external loadbalancer related constants and configuration. This package was originally forked from the kind load balancer at https://github.com/kubernetes-sigs/kind/tree/v0.7.0/pkg/cluster/internal/loadbalancer
Index ¶
Constants ¶
View Source
const ( // Image is the loadbalancer image name. Image = "haproxy" // DefaultImageRepository is the loadbalancer image repository. DefaultImageRepository = "kindest" // DefaultImageTag is the loadbalancer image tag. DefaultImageTag = "v20230606-42a2262b" // ConfigPath is the path to the config file in the image. ConfigPath = "/usr/local/etc/haproxy/haproxy.cfg" )
View Source
const DefaultTemplate = `` /* 1120-byte string literal not displayed */
DefaultTemplate is the loadbalancer config template.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BackendServer ¶ added in v1.9.0
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.