Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for ResolverConfig (0.29 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/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)
  6. 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)
  7. 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)
  8. pkg/kubelet/apis/config/v1beta1/defaults.go

    	// default nil or negative value to -1 (implies node allocatable pid limit)
    	if obj.PodPidsLimit == nil || *obj.PodPidsLimit < int64(0) {
    		obj.PodPidsLimit = utilpointer.Int64(-1)
    	}
    
    	if obj.ResolverConfig == nil {
    		obj.ResolverConfig = utilpointer.String(kubetypes.ResolvConfDefault)
    	}
    	if obj.CPUCFSQuota == nil {
    		obj.CPUCFSQuota = utilpointer.Bool(true)
    	}
    	if obj.CPUCFSQuotaPeriod == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 17:55:59 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  9. pkg/kubelet/apis/config/fuzzer/fuzzer.go

    			obj.PodLogsDir = "/var/log/pods"
    			obj.Port = ports.KubeletPort
    			obj.ReadOnlyPort = ports.KubeletReadOnlyPort
    			obj.RegistryBurst = 10
    			obj.RegistryPullQPS = 5
    			obj.ResolverConfig = kubetypes.ResolvConfDefault
    			obj.SerializeImagePulls = true
    			obj.StreamingConnectionIdleTimeout = metav1.Duration{Duration: 4 * time.Hour}
    			obj.SyncFrequency = metav1.Duration{Duration: 1 * time.Minute}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 17:55:59 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. pkg/kubemark/hollow_kubelet.go

    	// set promiscuous mode on docker0.
    	c.HairpinMode = kubeletconfig.HairpinVeth
    	c.MaxOpenFiles = 1024
    	c.RegistryBurst = 10
    	c.RegistryPullQPS = 5.0
    	c.ResolverConfig = kubetypes.ResolvConfDefault
    	c.KubeletCgroups = "/kubelet"
    	c.SerializeImagePulls = true
    	c.SystemCgroups = ""
    	c.ProtectKernelDefaults = false
    	c.RegisterWithTaints = opt.RegisterWithTaints
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:10:54 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top