client-go: kmodules.xyz/client-go/tools/ipallocator Index | Files

package ipallocator

import "kmodules.xyz/client-go/tools/ipallocator"

Index

Package Files

lib.go

type DiscoverVia Uses

type DiscoverVia string
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 Uses

type IPAllocator struct {
    // contains filtered or unexported fields
}

func New Uses

func New(serviceSubnet string, services []string, discoverVia DiscoverVia) *IPAllocator

func (IPAllocator) ClusterIP Uses

func (ipa IPAllocator) ClusterIP(svc string) string

func (IPAllocator) HostNetwork Uses

func (ipa IPAllocator) HostNetwork() bool

func (IPAllocator) ServiceAddress Uses

func (ipa IPAllocator) ServiceAddress(svc string) string

Package ipallocator imports 2 packages (graph). Updated 2020-10-02. Refresh now. Tools for package owners.