Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for ClusterCIDR (0.13 sec)

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

    			},
    		},
    		{
    			name: "LocalModeClusterCIDR, no ClusterCIDR",
    			config: &proxyconfigapi.KubeProxyConfiguration{
    				DetectLocalMode: proxyconfigapi.LocalModeClusterCIDR,
    				ClusterCIDR:     "",
    			},
    			primaryIPFamily: v1.IPv4Protocol,
    			expected: map[v1.IPFamily]proxyutil.LocalTrafficDetector{
    				v1.IPv4Protocol: proxyutil.NewNoOpLocalDetector(),
    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/controller/nodeipam/ipam/range_allocator_test.go

    						},
    					},
    				},
    				Clientset: fake.NewSimpleClientset(),
    			},
    			allocatorParams: CIDRAllocatorParams{
    				ClusterCIDRs: func() []*net.IPNet {
    					_, clusterCIDR, _ := netutils.ParseCIDRSloppy("127.123.234.0/24")
    					return []*net.IPNet{clusterCIDR}
    				}(),
    				ServiceCIDR:          nil,
    				SecondaryServiceCIDR: nil,
    				NodeCIDRMaskSizes:    []int{30},
    			},
    			expectedAllocatedCIDR: map[int]string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 10:06:15 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  3. pkg/controller/nodeipam/ipam/cidrset/cidr_set_test.go

    func TestCidrSetMetrics(t *testing.T) {
    	cidr := "10.0.0.0/16"
    	_, clusterCIDR, _ := netutils.ParseCIDRSloppy(cidr)
    	clearMetrics(map[string]string{"clusterCIDR": cidr})
    
    	// We have 256 free cidrs
    	a, err := NewCIDRSet(clusterCIDR, 24)
    	if err != nil {
    		t.Fatalf("unexpected error creating CidrSet: %v", err)
    	}
    
    	clusterMaskSize, _ := clusterCIDR.Mask.Size()
    	max := getMaxCIDRs(24, clusterMaskSize)
    	em := testMetrics{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 11 08:53:03 UTC 2023
    - 29.5K bytes
    - Viewed (0)
  4. cmd/kube-proxy/app/server_test.go

    			proxy: &ProxyServer{
    				Config: &kubeproxyconfig.KubeProxyConfiguration{
    					ClusterCIDR: "fd01:2345::/64",
    				},
    				PrimaryIPFamily: v1.IPv4Protocol,
    			},
    			ssErr:   true,
    			ssFatal: false,
    			dsErr:   true,
    			dsFatal: false,
    		},
    		{
    			name: "wrong-family clusterCIDR when using ClusterCIDR LocalDetector",
    			proxy: &ProxyServer{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  5. pkg/proxy/apis/config/validation/validation_test.go

    				config.ClusterCIDR = "fd00:192:168:59::/64"
    			},
    		},
    		"alternate healthz port": {
    			mutateConfigFunc: func(config *kubeproxyconfig.KubeProxyConfiguration) {
    				config.HealthzBindAddress = "0.0.0.0:12345"
    			},
    		},
    		"ClusterCIDR is wrong IP family": {
    			mutateConfigFunc: func(config *kubeproxyconfig.KubeProxyConfiguration) {
    				config.ClusterCIDR = "fd00:192:168::/64"
    			},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  6. pkg/proxy/apis/config/validation/validation.go

    			}
    		// if we are here means that len(cidrs) == 1, we need to validate it
    		default:
    			if _, _, err := netutils.ParseCIDRSloppy(config.ClusterCIDR); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  7. pkg/proxy/apis/config/v1alpha1/zz_generated.conversion.go

    	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)
  8. pkg/proxy/apis/config/types.go

    	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
    	// DetectLocalMode is set to LocalModeClusterCIDR, kube-proxy will consider
    	// traffic to be local if its source IP is in this range. (Otherwise it is not
    	// used.)
    	ClusterCIDR string
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 13K bytes
    - Viewed (0)
  9. pkg/controller/nodeipam/ipam/range_allocator.go

    	// Checks if service CIDR has a nonempty intersection with cluster
    	// CIDR. It is the case if either clusterCIDR contains serviceCIDR with
    	// clusterCIDR's Mask applied (this means that clusterCIDR contains
    	// serviceCIDR) or vice versa (which means that serviceCIDR contains
    	// clusterCIDR).
    	for idx, cidr := range r.clusterCIDRs {
    		// if they don't overlap then ignore the filtering
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 10:06:15 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  10. cmd/kube-proxy/app/server_linux.go

    		clusterCIDRs := strings.Split(strings.TrimSpace(config.ClusterCIDR), ",")
    		for family, cidrs := range proxyutil.MapCIDRsByIPFamily(clusterCIDRs) {
    			localDetectors[family] = proxyutil.NewDetectLocalByCIDR(cidrs[0].String())
    		}
    		if !localDetectors[primaryIPFamily].IsImplemented() {
    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