mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Fix comment out typo
This commit is contained in:
parent
0cae5f5006
commit
d775483381
@ -777,7 +777,7 @@ func NewMainKubelet(kubeCfg *kubeletconfiginternal.KubeletConfiguration,
|
|||||||
// check node capabilities since the mount path is not the default
|
// check node capabilities since the mount path is not the default
|
||||||
if len(experimentalMounterPath) != 0 {
|
if len(experimentalMounterPath) != 0 {
|
||||||
experimentalCheckNodeCapabilitiesBeforeMount = false
|
experimentalCheckNodeCapabilitiesBeforeMount = false
|
||||||
// Replace the nameserver in containerized-mounter's rootfs/etc/resolve.conf with kubelet.ClusterDNS
|
// Replace the nameserver in containerized-mounter's rootfs/etc/resolv.conf with kubelet.ClusterDNS
|
||||||
// so that service name could be resolved
|
// so that service name could be resolved
|
||||||
klet.dnsConfigurer.SetupDNSinContainerizedMounter(experimentalMounterPath)
|
klet.dnsConfigurer.SetupDNSinContainerizedMounter(experimentalMounterPath)
|
||||||
}
|
}
|
||||||
|
@ -427,7 +427,7 @@ func (c *Configurer) GetPodDNS(pod *v1.Pod) (*runtimeapi.DNSConfig, error) {
|
|||||||
return c.formDNSConfigFitsLimits(dnsConfig, pod), nil
|
return c.formDNSConfigFitsLimits(dnsConfig, pod), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetupDNSinContainerizedMounter replaces the nameserver in containerized-mounter's rootfs/etc/resolve.conf with kubelet.ClusterDNS
|
// SetupDNSinContainerizedMounter replaces the nameserver in containerized-mounter's rootfs/etc/resolv.conf with kubelet.ClusterDNS
|
||||||
func (c *Configurer) SetupDNSinContainerizedMounter(mounterPath string) {
|
func (c *Configurer) SetupDNSinContainerizedMounter(mounterPath string) {
|
||||||
resolvePath := filepath.Join(strings.TrimSuffix(mounterPath, "/mounter"), "rootfs", "etc", "resolv.conf")
|
resolvePath := filepath.Join(strings.TrimSuffix(mounterPath, "/mounter"), "rootfs", "etc", "resolv.conf")
|
||||||
dnsString := ""
|
dnsString := ""
|
||||||
|
Loading…
Reference in New Issue
Block a user