Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 25 for PortRange (0.18 sec)

  1. 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)
  2. pkg/registry/core/service/portallocator/storage/storage_test.go

    		d()
    		server.Terminate(t)
    	}
    	return server, storage, backing, s, destroyFunc
    }
    
    func validNewRangeAllocation() *api.RangeAllocation {
    	portRange := fmt.Sprintf("%d-%d", basePortRange, basePortRange+sizePortRange-1)
    	return &api.RangeAllocation{
    		Range: portRange,
    	}
    }
    
    func key() string {
    	return "/ranges/servicenodeports"
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 07:15:02 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. pkg/proxy/apis/config/scheme/testdata/KubeProxyConfiguration/after/v1alpha1.yaml

      verbosity: 0
    metricsBindAddress: 127.0.0.1:10249
    mode: ""
    nftables:
      masqueradeAll: false
      masqueradeBit: 14
      minSyncPeriod: 1s
      syncPeriod: 30s
    nodePortAddresses: null
    oomScoreAdj: -999
    portRange: ""
    showHiddenMetricsForVersion: ""
    winkernel:
      enableDSR: false
      forwardHealthCheckVip: false
      networkName: ""
      rootHnsEndpointName: ""
    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. staging/src/k8s.io/apimachinery/pkg/util/net/port_range_test.go

    		{"100+200", true, "100-300", 300, 301},
    		{"1+65535", false, "", -1, -1},
    		{"0+65535", true, "0-65535", 65535, 65536},
    	}
    
    	for i := range testCases {
    		tc := &testCases[i]
    		pr := &PortRange{}
    		var f flag.Value = pr
    		err := f.Set(tc.input)
    		if err != nil && tc.success {
    			t.Errorf("expected success, got %q", err)
    			continue
    		} else if err == nil && !tc.success {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 05 02:24:38 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. cmd/kube-apiserver/app/options/options.go

    	PrimaryServiceClusterIPRange   net.IPNet
    	SecondaryServiceClusterIPRange net.IPNet
    	// APIServerServiceIP is the first valid IP from PrimaryServiceClusterIPRange
    	APIServerServiceIP net.IP
    
    	ServiceNodePortRange utilnet.PortRange
    
    	EndpointReconcilerType string
    
    	MasterCount int
    }
    
    // NewServerRunOptions creates a new ServerRunOptions object with default parameters
    func NewServerRunOptions() *ServerRunOptions {
    	s := ServerRunOptions{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 12:19:56 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. cmd/kube-proxy/app/server_linux_test.go

    ipvs:
      excludeCIDRs: null
      minSyncPeriod: 0s
      scheduler: ""
      syncPeriod: 30s
    kind: KubeProxyConfiguration
    metricsBindAddress: 127.0.0.1:10249
    mode: ""
    nodePortAddresses: null
    oomScoreAdj: -999
    portRange: ""
    detectLocalMode: "BridgeInterface"`)
    		if err != nil {
    			return nil, "", fmt.Errorf("unexpected error when writing content to temp kube-proxy config file: %v", err)
    		}
    
    		return file, tempDir, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top