Documentation ¶
Index ¶
Constants ¶
View Source
const ( UDPBufferSize = 4096 // 4KiB should be enough for most whole-packets NeedPodsReason = "NeedPods" )
Variables ¶
View Source
var ( // MaxHeldConnections is the maximum number of TCP connections per service that // will be held by the unidler at once (new connections will cause older ones // to be dropped after the limit is reached) MaxHeldConnections = 16 )
Functions ¶
func NewUnidlerProxier ¶
func NewUnidlerProxier(loadBalancer userspace.LoadBalancer, listenIP net.IP, iptables iptables.Interface, exec utilexec.Interface, pr utilnet.PortRange, syncPeriod, udpIdleTimeout time.Duration, signaler NeedPodsSignaler) (*userspace.Proxier, error)
NewUnidlerProxier creates a new Proxier for the given LoadBalancer and address which fires off unidling signals connections and traffic. It is intended to be used as one half of a HybridProxier.
Types ¶
type NeedPodsSignaler ¶
type NeedPodsSignaler interface { // NeedPods signals that endpoint addresses are needed in order to // service a traffic coming to the given service and port NeedPods(serviceRef api.ObjectReference, port string) error }
func NewEventSignaler ¶
func NewEventSignaler(eventRecorder record.EventRecorder) NeedPodsSignaler
NewEventSignaler constructs a NeedPodsSignaler which signals by recording an event for the service with the "NeedPods" reason.
Click to show internal directories.
Click to hide internal directories.