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
Click to show internal directories.
Click to hide internal directories.