Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for PortRange (0.28 sec)

  1. pkg/registry/core/service/portallocator/controller/repair.go

    )
    
    // See ipallocator/controller/repair.go; this is a copy for ports.
    type Repair struct {
    	interval      time.Duration
    	serviceClient corev1client.ServicesGetter
    	portRange     net.PortRange
    	alloc         rangeallocation.RangeRegistry
    	leaks         map[int]int // counter per leaked port
    
    	broadcaster events.EventBroadcaster
    	recorder    events.EventRecorder
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  2. pkg/registry/core/service/portallocator/allocator_test.go

    	type args struct {
    		pr net.PortRange
    	}
    	tests := []struct {
    		name string
    		args args
    		want int
    	}{
    		{
    			name: "default node port range",
    			args: args{
    				pr: net.PortRange{
    					Base: 30000,
    					Size: 2768,
    				},
    			},
    			want: 86,
    		},
    		{
    			name: "very small node port range",
    			args: args{
    				pr: net.PortRange{
    					Base: 30000,
    					Size: 10,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 07:15:02 UTC 2024
    - 14K bytes
    - Viewed (0)
  3. pkg/proxy/ipvs/ipset/ipset_test.go

    func Test_validatePortRange(t *testing.T) {
    	testCases := []struct {
    		portRange string
    		expectErr bool
    		desc      string
    	}{
    		{ // case[0]
    			portRange: "a-b",
    			expectErr: true,
    			desc:      "invalid port number",
    		},
    		{ // case[1]
    			portRange: "1-2",
    			expectErr: false,
    			desc:      "valid",
    		},
    		{ // case[2]
    			portRange: "90-1",
    			expectErr: false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 41.5K bytes
    - Viewed (0)
  4. pkg/proxy/ipvs/ipset/ipset.go

    func validatePortRange(portRange string) error {
    	strs := strings.Split(portRange, "-")
    	if len(strs) != 2 {
    		return fmt.Errorf("invalid PortRange: %q", portRange)
    	}
    	for i := range strs {
    		num, err := strconv.Atoi(strs[i])
    		if err != nil {
    			return fmt.Errorf("invalid PortRange: %q", portRange)
    		}
    		if num < 0 {
    			return fmt.Errorf("invalid PortRange: %q", portRange)
    		}
    	}
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  5. pkg/proxy/apis/config/v1alpha1/zz_generated.conversion.go

    	if err := Convert_v1alpha1_KubeProxyConntrackConfiguration_To_config_KubeProxyConntrackConfiguration(&in.Conntrack, &out.Conntrack, s); err != nil {
    		return err
    	}
    	out.ConfigSyncPeriod = in.ConfigSyncPeriod
    	out.PortRange = in.PortRange
    	return nil
    }
    
    // Convert_v1alpha1_KubeProxyConfiguration_To_config_KubeProxyConfiguration is an autogenerated conversion function.
    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. cmd/kube-apiserver/app/options/validation_test.go

    			}
    		})
    	}
    }
    
    func makeOptionsWithPort(kubernetesServiceNodePort int, base int, size int) *ServerRunOptions {
    	var portRange = utilnet.PortRange{
    		Base: base,
    		Size: size,
    	}
    	return &ServerRunOptions{
    		Extra: Extra{
    			ServiceNodePortRange:      portRange,
    			KubernetesServiceNodePort: kubernetesServiceNodePort,
    		},
    	}
    }
    
    func TestValidateMaxCIDRRange(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. pkg/proxy/apis/config/validation/validation.go

    			}
    		}
    	}
    
    	if _, err := utilnet.ParsePortRange(config.PortRange); err != nil {
    		allErrs = append(allErrs, field.Invalid(newPath.Child("PortRange"), config.PortRange, "must be a valid port range (e.g. 300-2000)"))
    	}
    
    	allErrs = append(allErrs, validateKubeProxyNodePortAddress(config.NodePortAddresses, newPath.Child("NodePortAddresses"))...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  8. pkg/proxy/apis/config/types.go

    	// configSyncPeriod is how often configuration from the apiserver is refreshed. Must be greater
    	// than 0.
    	ConfigSyncPeriod metav1.Duration
    
    	// portRange was previously used to configure the userspace proxy, but is now unused.
    	PortRange string
    }
    
    // ProxyMode represents modes used by the Kubernetes proxy server.
    //
    // Currently, three modes of proxy are available on Linux platforms: 'iptables', 'ipvs',
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 13K bytes
    - Viewed (0)
  9. cmd/kube-proxy/app/server_test.go

        - "fd00:1::0/64"
    nftables:
      masqueradeAll: true
      masqueradeBit: 18
      minSyncPeriod: 10s
      syncPeriod: 60s
    kind: KubeProxyConfiguration
    metricsBindAddress: "%s"
    mode: "%s"
    oomScoreAdj: 17
    portRange: "2-7"
    detectLocalMode: "ClusterCIDR"
    detectLocal:
      bridgeInterface: "cbr0"
      interfaceNamePrefix: "veth"
    nodePortAddresses:
      - "10.20.30.40/16"
      - "fd00:1::0/64"
    `
    
    	testCases := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  10. pkg/registry/core/rest/storage_core.go

    	KubeletClientConfig kubeletclient.KubeletClientConfig
    }
    
    type ServicesConfig struct {
    	// Service IP ranges
    	ClusterIPRange          net.IPNet
    	SecondaryClusterIPRange net.IPNet
    	NodePortRange           utilnet.PortRange
    
    	IPRepairInterval time.Duration
    }
    
    type rangeRegistries struct {
    	clusterIP          rangeallocation.RangeRegistry
    	secondaryClusterIP rangeallocation.RangeRegistry
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:05 UTC 2023
    - 19.1K bytes
    - Viewed (0)
Back to top