Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for ResolverConfig (0.55 sec)

  1. cmd/kubeadm/app/componentconfigs/kubelet_unix_test.go

    				ResolverConfig: nil,
    			},
    			isServiceActiveFunc: func(string) (bool, error) { return true, nil },
    			expected: &kubeletconfig.KubeletConfiguration{
    				ResolverConfig: ptr.To(kubeletSystemdResolverConfig),
    			},
    		},
    		{
    			name: "the resolver config should not be set when systemd-resolved is not active",
    			cfg: &kubeletconfig.KubeletConfiguration{
    				ResolverConfig: nil,
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 10:26:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/componentconfigs/kubelet_windows_test.go

    			cfg: &kubeletconfig.KubeletConfiguration{
    				ResolverConfig: &fooResolverConfig,
    				StaticPodPath:  "/foo/staticpods",
    				Authentication: kubeletconfig.KubeletAuthentication{
    					X509: kubeletconfig.KubeletX509Authentication{
    						ClientCAFile: "/foo/ca.crt",
    					},
    				},
    			},
    			expected: &kubeletconfig.KubeletConfiguration{
    				ResolverConfig: ptr.To(""),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 10:26:46 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/componentconfigs/kubelet_unix.go

    }
    
    // mutateResolverConfig mutates the ResolverConfig in the kubeletConfig dynamically.
    func mutateResolverConfig(cfg *kubeletconfig.KubeletConfiguration, isServiceActiveFunc func(string) (bool, error)) error {
    	ok, err := isServiceActiveFunc("systemd-resolved")
    	if err != nil {
    		klog.Warningf("cannot determine if systemd-resolved is active: %v", err)
    	}
    	if ok {
    		if cfg.ResolverConfig == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 10:26:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. pkg/kubelet/network/dns/dns_windows.go

    }
    
    func getHostDNSConfig(resolverConfig string) (*runtimeapi.DNSConfig, error) {
    	if resolverConfig == "" {
    		// This handles "" by returning defaults.
    		return getDNSConfig(resolverConfig)
    	}
    
    	isFile, err := fileExists(resolverConfig)
    	if err != nil {
    		err = fmt.Errorf(`Unexpected error while getting os.Stat for "%s" resolver config. Error: %w`, resolverConfig, err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 21 22:21:57 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  5. pkg/kubelet/network/dns/dns.go

    	// conjunction with clusterDomain and clusterDNS.
    	ResolverConfig string
    }
    
    // NewConfigurer returns a DNS configurer for launching pods.
    func NewConfigurer(recorder record.EventRecorder, nodeRef *v1.ObjectReference, nodeIPs []net.IP, clusterDNS []net.IP, clusterDomain, resolverConfig string) *Configurer {
    	return &Configurer{
    		recorder:         recorder,
    		getHostDNSConfig: getHostDNSConfig,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 04 11:37:10 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  6. pkg/kubelet/apis/config/helpers.go

    	paths = append(paths, &kc.StaticPodPath)
    	paths = append(paths, &kc.Authentication.X509.ClientCAFile)
    	paths = append(paths, &kc.TLSCertFile)
    	paths = append(paths, &kc.TLSPrivateKeyFile)
    	paths = append(paths, &kc.ResolverConfig)
    	paths = append(paths, &kc.VolumePluginDir)
    	paths = append(paths, &kc.PodLogsDir)
    	return paths
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 17:55:59 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/componentconfigs/kubelet_windows.go

    	}
    
    	// Mutate the fields we care about.
    	klog.V(2).Infof("[componentconfig] kubelet/Windows: changing field \"resolverConfig\" to empty")
    	cfg.ResolverConfig = ptr.To("")
    	mutateStringField("staticPodPath", &cfg.StaticPodPath)
    	mutateStringField("authentication.x509.clientCAFile", &cfg.Authentication.X509.ClientCAFile)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 10:26:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. src/net/dnsclient_unix.go

    				continue
    			}
    
    			return p, server, nil
    		}
    	}
    	return dnsmessage.Parser{}, "", lastErr
    }
    
    // A resolverConfig represents a DNS stub resolver configuration.
    type resolverConfig struct {
    	initOnce sync.Once // guards init of resolverConfig
    
    	// ch is used as a semaphore that only allows one lookup at a
    	// time to recheck resolv.conf.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  9. pkg/kubelet/network/dns/dns_windows_test.go

    limitations under the License.
    */
    
    package dns
    
    import (
    	runtimeapi "k8s.io/cri-api/pkg/apis/runtime/v1"
    )
    
    var (
    	defaultResolvConf = hostResolvConf
    )
    
    func fakeGetHostDNSConfigCustom(resolverConfig string) (*runtimeapi.DNSConfig, error) {
    	return &runtimeapi.DNSConfig{
    		Servers:  []string{testHostNameserver},
    		Searches: []string{testHostDomain},
    	}, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 21 22:21:57 UTC 2023
    - 937 bytes
    - Viewed (0)
  10. pkg/kubelet/apis/config/v1beta1/defaults_test.go

    				HairpinMode:                               v1beta1.PromiscuousBridge,
    				MaxPods:                                   110,
    				PodPidsLimit:                              utilpointer.Int64(-1),
    				ResolverConfig:                            utilpointer.String(kubetypes.ResolvConfDefault),
    				CPUCFSQuota:                               utilpointer.Bool(true),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 21:10:42 UTC 2024
    - 51K bytes
    - Viewed (0)
Back to top