mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 06:02:18 +00:00
Implement multi-port Endpoints
This is a part of multi-port services.
This commit is contained in:
@@ -25,8 +25,8 @@ import (
|
||||
// LoadBalancer is an interface for distributing incoming requests to service endpoints.
|
||||
type LoadBalancer interface {
|
||||
// NextEndpoint returns the endpoint to handle a request for the given
|
||||
// service and source address.
|
||||
NextEndpoint(service string, srcAddr net.Addr) (string, error)
|
||||
NewService(service string, sessionAffinityType api.AffinityType, stickyMaxAgeMinutes int) error
|
||||
CleanupStaleStickySessions(service string)
|
||||
// serviceName:portName and source address.
|
||||
NextEndpoint(service string, port string, srcAddr net.Addr) (string, error)
|
||||
NewService(service string, port string, sessionAffinityType api.AffinityType, stickyMaxAgeMinutes int) error
|
||||
CleanupStaleStickySessions(service string, port string)
|
||||
}
|
||||
|
Reference in New Issue
Block a user