- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for clusterCIDR (0.24 sec)
-
cmd/kubeadm/app/componentconfigs/kubeproxy_test.go
t.Fatalf("found different object type than expected: %s", reflect.TypeOf(cfg)) } else if kubeproxyCfg.config.ClusterCIDR != clusterCIDR { t.Fatalf("unexpected control value (clusterDomain):\n\tgot: %q\n\texpected: %q", kubeproxyCfg.config.ClusterCIDR, clusterCIDR) } } func TestKubeProxyFromDocumentMap(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 01 14:17:07 UTC 2022 - 5.2K bytes - Viewed (0) -
pkg/controller/nodeipam/ipam/cidrset/cidr_set.go
} begin, end = 0, s.maxCIDRs-1 cidrMask := cidr.Mask maskSize, _ := cidrMask.Size() var ipSize int if !s.clusterCIDR.Contains(cidr.IP.Mask(s.clusterCIDR.Mask)) && !cidr.Contains(s.clusterCIDR.IP.Mask(cidr.Mask)) { return -1, -1, fmt.Errorf("cidr %v is out the range of cluster cidr %v", cidr, s.clusterCIDR) } if s.clusterMaskSize < maskSize {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 11 08:53:03 UTC 2023 - 9.4K bytes - Viewed (0) -
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) -
cmd/kubeadm/app/componentconfigs/kubeproxy.go
} if kp.config.ClusterCIDR == "" && cfg.Networking.PodSubnet != "" { kp.config.ClusterCIDR = cfg.Networking.PodSubnet } else if cfg.Networking.PodSubnet != "" && kp.config.ClusterCIDR != cfg.Networking.PodSubnet { warnDefaultComponentConfigValue(kind, "clusterCIDR", cfg.Networking.PodSubnet, kp.config.ClusterCIDR) } if kp.config.ClientConnection.Kubeconfig == "" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 20 03:01:30 UTC 2023 - 4.8K bytes - Viewed (0) -
pkg/controller/nodeipam/ipam/controller_test.go
) func TestOccupyServiceCIDR(t *testing.T) { const clusterCIDR = "10.1.0.0/16" TestCase: for _, tc := range []struct { serviceCIDR string }{ {"10.0.255.0/24"}, {"10.1.0.0/24"}, {"10.1.255.0/24"}, {"10.2.0.0/24"}, } { serviceCIDR := test.MustParseCIDR(tc.serviceCIDR) set, err := cidrset.NewCIDRSet(test.MustParseCIDR(clusterCIDR), 24) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 04 20:48:08 UTC 2018 - 1.9K bytes - Viewed (0) -
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) -
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) -
pkg/controller/nodeipam/ipam/cidrset/metrics.go
StabilityLevel: metrics.ALPHA, }, []string{"clusterCIDR"}, ) cidrSetReleases = metrics.NewCounterVec( &metrics.CounterOpts{ Subsystem: nodeIpamSubsystem, Name: "cidrset_cidrs_releases_total", Help: "Counter measuring total number of CIDR releases.", StabilityLevel: metrics.ALPHA, }, []string{"clusterCIDR"}, )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Dec 05 15:18:45 UTC 2022 - 2.7K bytes - Viewed (0) -
common-protos/k8s.io/api/networking/v1alpha1/generated.proto
option go_package = "k8s.io/api/networking/v1alpha1"; // ClusterCIDR represents a single configuration for per-Node Pod CIDR // allocations when the MultiCIDRRangeAllocator is enabled (see the config for // kube-controller-manager). A cluster may have any number of ClusterCIDR // resources, all of which will be considered when allocating a CIDR for a // Node. A ClusterCIDR is eligible to be used for a given Node when the node
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 11 18:43:24 UTC 2024 - 6K bytes - Viewed (0) -
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)