import "kmodules.xyz/client-go/tools/ipallocator"
const ( // DiscoverViaIP is a replacement for kube-dns. It uses a predefined map for service name to cluster ip. // This reduces Kubernetes related overhead in a cluster. DiscoverViaIP DiscoverVia = "ip" DiscoverViaDNS DiscoverVia = "dns" )
type IPAllocator struct {
// contains filtered or unexported fields
}
func New(serviceSubnet string, services []string, discoverVia DiscoverVia) *IPAllocator
func (ipa IPAllocator) ClusterIP(svc string) string
func (ipa IPAllocator) HostNetwork() bool
func (ipa IPAllocator) ServiceAddress(svc string) string
Package ipallocator imports 2 packages (graph). Updated 2020-10-02. Refresh now. Tools for package owners.