Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for clusterCIDR (0.89 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. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. cmd/kube-proxy/app/server.go

    	fs.StringVar(&o.config.ClusterCIDR, "cluster-cidr", o.config.ClusterCIDR, "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 --detect-local-mode is set to ClusterCIDR, kube-proxy will consider traffic to be local if its source IP is in this range. (Otherwise it is not used.) "+
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 13:27:41 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  10. cmd/kube-controller-manager/app/core.go

    	sortedSizes := func(maskSizeIPv4, maskSizeIPv6 int) []int {
    		nodeMaskCIDRs := make([]int, len(clusterCIDRs))
    
    		for idx, clusterCIDR := range clusterCIDRs {
    			if netutils.IsIPv6CIDR(clusterCIDR) {
    				nodeMaskCIDRs[idx] = maskSizeIPv6
    			} else {
    				nodeMaskCIDRs[idx] = maskSizeIPv4
    			}
    		}
    		return nodeMaskCIDRs
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 39K bytes
    - Viewed (0)
Back to top