package dns
import "k8s.io/kubernetes/pkg/kubelet/network/dns"
Index ¶
- type Configurer
- func NewConfigurer(recorder record.EventRecorder, nodeRef *v1.ObjectReference, nodeIP net.IP, clusterDNS []net.IP, clusterDomain, resolverConfig string) *Configurer
- func (c *Configurer) CheckLimitsForResolvConf()
- func (c *Configurer) GetClusterDNS(pod *v1.Pod) ([]string, []string, []string, bool, error)
- func (c *Configurer) SetupDNSinContainerizedMounter(mounterPath string)
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) GetClusterDNS ¶
GetClusterDNS returns a list of the DNS servers, a list of the DNS search domains of the cluster, and a list of resolv.conf options. TODO: This should return a struct.
func (*Configurer) SetupDNSinContainerizedMounter ¶
func (c *Configurer) SetupDNSinContainerizedMounter(mounterPath string)
SetupDNSinContainerizedMounter replaces the nameserver in containerized-mounter's rootfs/etc/resolve.conf with kubelet.ClusterDNS
Source Files ¶
dns.go
- Version
- v1.10.0-alpha.0
- Published
- Nov 16, 2017
- Platform
- js/wasm
- Imports
- 12 packages
- Last checked
- 2 minutes ago –
Tools for package owners.