Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for detectLocal (0.21 sec)

  1. pkg/proxy/util/localdetector.go

    	// from a local pod.
    	IfNotLocalNFT() []string
    }
    
    type detectLocal struct {
    	ifLocal       []string
    	ifNotLocal    []string
    	ifLocalNFT    []string
    	ifNotLocalNFT []string
    }
    
    func (d *detectLocal) IsImplemented() bool {
    	return len(d.ifLocal) > 0
    }
    
    func (d *detectLocal) IfLocal() []string {
    	return d.ifLocal
    }
    
    func (d *detectLocal) IfNotLocal() []string {
    	return d.ifNotLocal
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 15:34:37 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. cmd/kube-proxy/app/server_linux_test.go

    		mode                proxyconfigapi.ProxyMode
    		expectedMode        proxyconfigapi.ProxyMode
    		detectLocal         proxyconfigapi.LocalMode
    		expectedDetectLocal proxyconfigapi.LocalMode
    	}{
    		{
    			name:                "defaults",
    			mode:                "",
    			expectedMode:        proxyconfigapi.ProxyModeIPTables,
    			detectLocal:         "",
    			expectedDetectLocal: proxyconfigapi.LocalModeClusterCIDR,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. pkg/proxy/apis/config/scheme/testdata/KubeProxyConfiguration/roundtrip/default/v1alpha1.yaml

    clusterCIDR: ""
    configSyncPeriod: 15m0s
    conntrack:
      maxPerCore: 32768
      min: 131072
      tcpBeLiberal: false
      tcpCloseWaitTimeout: 1h0m0s
      tcpEstablishedTimeout: 24h0m0s
      udpStreamTimeout: 0s
      udpTimeout: 0s
    detectLocal:
      bridgeInterface: ""
      interfaceNamePrefix: ""
    detectLocalMode: ""
    enableProfiling: false
    healthzBindAddress: 0.0.0.0:10256
    hostnameOverride: ""
    iptables:
      localhostNodePorts: true
      masqueradeAll: false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 17 12:50:03 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  4. pkg/proxy/apis/config/scheme/testdata/KubeProxyConfiguration/after/v1alpha1.yaml

    clusterCIDR: ""
    configSyncPeriod: 15m0s
    conntrack:
      maxPerCore: 32768
      min: 131072
      tcpBeLiberal: false
      tcpCloseWaitTimeout: 1h0m0s
      tcpEstablishedTimeout: 24h0m0s
      udpStreamTimeout: 0s
      udpTimeout: 0s
    detectLocal:
      bridgeInterface: ""
      interfaceNamePrefix: ""
    detectLocalMode: ""
    enableProfiling: false
    healthzBindAddress: 0.0.0.0:10256
    hostnameOverride: ""
    iptables:
      localhostNodePorts: true
      masqueradeAll: false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 17 12:50:03 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. pkg/proxy/apis/config/v1alpha1/zz_generated.conversion.go

    		return err
    	}
    	out.DetectLocalMode = config.LocalMode(in.DetectLocalMode)
    	if err := Convert_v1alpha1_DetectLocalConfiguration_To_config_DetectLocalConfiguration(&in.DetectLocal, &out.DetectLocal, s); err != nil {
    		return err
    	}
    	out.ClusterCIDR = in.ClusterCIDR
    	out.NodePortAddresses = *(*[]string)(unsafe.Pointer(&in.NodePortAddresses))
    	out.OOMScoreAdj = (*int32)(unsafe.Pointer(in.OOMScoreAdj))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:33:53 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  6. pkg/proxy/apis/config/zz_generated.deepcopy.go

    	in.Logging.DeepCopyInto(&out.Logging)
    	in.IPTables.DeepCopyInto(&out.IPTables)
    	in.IPVS.DeepCopyInto(&out.IPVS)
    	out.Winkernel = in.Winkernel
    	in.NFTables.DeepCopyInto(&out.NFTables)
    	out.DetectLocal = in.DetectLocal
    	if in.NodePortAddresses != nil {
    		in, out := &in.NodePortAddresses, &out.NodePortAddresses
    		*out = make([]string, len(*in))
    		copy(*out, *in)
    	}
    	if in.OOMScoreAdj != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 13 15:12:28 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. pkg/proxy/apis/config/validation/validation_test.go

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

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

    	NFTables KubeProxyNFTablesConfiguration
    
    	// detectLocalMode determines mode to use for detecting local traffic, defaults to LocalModeClusterCIDR
    	DetectLocalMode LocalMode
    	// detectLocal contains optional configuration settings related to DetectLocalMode.
    	DetectLocal DetectLocalConfiguration
    	// clusterCIDR is the CIDR range of the pods in the cluster. (For dual-stack
    	// clusters, this can be a comma-separated dual-stack pair of CIDR ranges.). When
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 13K bytes
    - Viewed (0)
  10. cmd/kube-proxy/app/server_linux.go

    		localDetector := proxyutil.NewDetectLocalByBridgeInterface(config.DetectLocal.BridgeInterface)
    		localDetectors[v1.IPv4Protocol] = localDetector
    		localDetectors[v1.IPv6Protocol] = localDetector
    
    	case proxyconfigapi.LocalModeInterfaceNamePrefix:
    		localDetector := proxyutil.NewDetectLocalByInterfaceNamePrefix(config.DetectLocal.InterfaceNamePrefix)
    		localDetectors[v1.IPv4Protocol] = localDetector
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 08 13:48:54 UTC 2024
    - 18.1K bytes
    - Viewed (0)
Back to top