Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RRLB ¶
type RRLB struct { IPs []string // immutable // contains filtered or unexported fields }
RRLB is round-robin load balancer
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
func (*Table) Lookup ¶
Lookup returns target pod's addr to connect to. If target pod's addr is not found in table, it will return empty string
func (*Table) SetHostRoute ¶
func (*Table) SetHostRoutes ¶
SetHostRoutes sets route from host to RRLB (IPs)
In Kubernetes cluster, host is dns name service.namespace.svc.cluster.local and IPs is list of pod IPs from service's endpoint.
func (*Table) SetPortRoutes ¶
SetPortRoutes sets route from service's addr to pod's port to make proxy connect directly to pod.
Click to show internal directories.
Click to hide internal directories.