ipallocator

package
v0.0.0-...-f6121d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoverVia

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

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

func New

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

func (IPAllocator) ClusterIP

func (ipa IPAllocator) ClusterIP(svc string) string

func (IPAllocator) HostNetwork

func (ipa IPAllocator) HostNetwork() bool

func (IPAllocator) ServiceAddress

func (ipa IPAllocator) ServiceAddress(svc string) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL