Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for DetectLocalMode (0.45 sec)

  1. cmd/kube-proxy/app/server_linux_test.go

    				Mode:            tc.mode,
    				DetectLocalMode: tc.detectLocal,
    			}
    
    			options.platformApplyDefaults(config)
    			if config.Mode != tc.expectedMode {
    				t.Fatalf("expected mode: %s, but got: %s", tc.expectedMode, config.Mode)
    			}
    			if config.DetectLocalMode != tc.expectedDetectLocal {
    				t.Fatalf("expected detect-local: %s, but got: %s", tc.expectedDetectLocal, config.DetectLocalMode)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  2. pkg/proxy/apis/config/types.go

    type DetectLocalConfiguration struct {
    	// bridgeInterface is a bridge interface name. When DetectLocalMode is set to
    	// LocalModeBridgeInterface, kube-proxy will consider traffic to be local if
    	// it originates from this bridge.
    	BridgeInterface string
    	// interfaceNamePrefix is an interface name prefix. When DetectLocalMode is set to
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 13K bytes
    - Viewed (0)
  3. pkg/proxy/apis/config/validation/validation_test.go

    				config.DetectLocalMode = kubeproxyconfig.LocalModeInterfaceNamePrefix
    				config.DetectLocal = kubeproxyconfig.DetectLocalConfiguration{
    					InterfaceNamePrefix: "vethabcde",
    				}
    			},
    		},
    		"LocalModeBridgeInterface": {
    			mutateConfigFunc: func(config *kubeproxyconfig.KubeProxyConfiguration) {
    				config.DetectLocalMode = kubeproxyconfig.LocalModeBridgeInterface
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  4. cmd/kube-proxy/app/server_linux.go

    	}
    
    	if config.DetectLocalMode == "" {
    		o.logger.V(4).Info("Defaulting detect-local-mode", "localModeClusterCIDR", string(proxyconfigapi.LocalModeClusterCIDR))
    		config.DetectLocalMode = proxyconfigapi.LocalModeClusterCIDR
    	}
    	o.logger.V(2).Info("DetectLocalMode", "localMode", string(config.DetectLocalMode))
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  5. pkg/proxy/apis/config/validation/validation.go

    	allErrs = append(allErrs, validateDetectLocalMode(config.DetectLocalMode, newPath.Child("DetectLocalMode"))...)
    	if config.DetectLocalMode == kubeproxyconfig.LocalModeBridgeInterface {
    		allErrs = append(allErrs, validateInterface(config.DetectLocal.BridgeInterface, newPath.Child("InterfaceName"))...)
    	}
    	if config.DetectLocalMode == kubeproxyconfig.LocalModeInterfaceNamePrefix {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  6. cmd/kube-proxy/app/server_test.go

    					DetectLocalMode: kubeproxyconfig.LocalModeNodeCIDR,
    				},
    				PrimaryIPFamily: v1.IPv4Protocol,
    				podCIDRs:        []string{"10.0.0.0/8", "fd01:2345::/64"},
    			},
    			ssErr: false,
    			dsErr: false,
    		},
    		{
    			name: "ok reversed dual-stack node.spec.podCIDRs",
    			proxy: &ProxyServer{
    				Config: &kubeproxyconfig.KubeProxyConfiguration{
    					DetectLocalMode: kubeproxyconfig.LocalModeNodeCIDR,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  7. cmd/kube-proxy/app/server.go

    			if s.Config.DetectLocalMode == kubeproxyconfig.LocalModeClusterCIDR && !dualStackSupported {
    				// This has always been a fatal error
    				fatal = true
    			}
    		}
    	}
    
    	if badCIDRs(s.podCIDRs, badFamily) {
    		errors = append(errors, fmt.Errorf("cluster is %s but node.spec.podCIDRs contains only IPv%s addresses", clusterType, badFamily))
    		if s.Config.DetectLocalMode == kubeproxyconfig.LocalModeNodeCIDR {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 13:27:41 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  8. pkg/generated/openapi/zz_generated.openapi.go

    				Description: "DetectLocalConfiguration contains optional settings related to DetectLocalMode option",
    				Type:        []string{"object"},
    				Properties: map[string]spec.Schema{
    					"bridgeInterface": {
    						SchemaProps: spec.SchemaProps{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3M bytes
    - Viewed (0)
Back to top