dns

package
v1.15.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configurer

type Configurer struct {

	// If non-empty, use this for container DNS search.
	ClusterDomain string
	// The path to the DNS resolver configuration file used as the base to generate
	// the container's DNS resolver configuration file. This can be used in
	// conjunction with clusterDomain and clusterDNS.
	ResolverConfig string
	// contains filtered or unexported fields
}

Configurer is used for setting up DNS resolver configuration when launching pods.

func NewConfigurer

func NewConfigurer(recorder record.EventRecorder, nodeRef *v1.ObjectReference, nodeIP net.IP, clusterDNS []net.IP, clusterDomain, resolverConfig string) *Configurer

NewConfigurer returns a DNS configurer for launching pods.

func (*Configurer) CheckLimitsForResolvConf

func (c *Configurer) CheckLimitsForResolvConf()

CheckLimitsForResolvConf checks limits in resolv.conf.

func (*Configurer) GetPodDNS

func (c *Configurer) GetPodDNS(pod *v1.Pod) (*runtimeapi.DNSConfig, error)

GetPodDNS returns DNS settings for the pod.

func (*Configurer) SetupDNSinContainerizedMounter

func (c *Configurer) SetupDNSinContainerizedMounter(mounterPath string)

SetupDNSinContainerizedMounter replaces the nameserver in containerized-mounter's rootfs/etc/resolve.conf with kubelet.ClusterDNS

Jump to

Keyboard shortcuts

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