Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 40 for sub_zoneC (0.13 sec)

  1. istioctl/pkg/writer/ztunnel/configdump/api.go

    // limitations under the License.
    
    package configdump
    
    type Locality struct {
    	Region  string `json:"region,omitempty"`
    	Zone    string `json:"zone,omitempty"`
    	Subzone string `json:"subzone,omitempty"`
    }
    
    type ZtunnelWorkload struct {
    	WorkloadIPs           []string          `json:"workloadIps"`
    	Waypoint              *GatewayAddress   `json:"waypoint,omitempty"`
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/kube/controller/endpoint_builder_test.go

    				ObjectMeta: metav1.ObjectMeta{Name: "fake", Labels: map[string]string{
    					NodeRegionLabelGA:          loc.Region,
    					NodeZoneLabel:              loc.Zone,
    					label.TopologySubzone.Name: loc.SubZone,
    				}},
    				Spec:   v1.NodeSpec{},
    				Status: v1.NodeStatus{},
    			})
    			nodes := kclient.New[*v1.Node](fc)
    			fc.RunAndWait(test.NewStop(t))
    			cc := &Controller{
    				nodes:       nodes,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. pkg/config/validation/agent/validation.go

    					}
    					if regionZoneSubZoneMap[region][zone][subZone] {
    						return fmt.Errorf("locality %s overlap with previous specified ones", locality)
    					}
    					regionZoneSubZoneMap[region][zone][subZone] = true
    				} else {
    					regionZoneSubZoneMap[region][zone] = map[string]bool{subZone: true}
    				}
    			} else {
    				regionZoneSubZoneMap[region] = map[string]map[string]bool{zone: {subZone: true}}
    			}
    		}
    	}
    
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  4. pkg/bootstrap/option/instances_test.go

    			expected: "fake",
    		},
    		{
    			testName: "zone",
    			key:      "zone",
    			option:   option.Zone("fake"),
    			expected: "fake",
    		},
    		{
    			testName: "sub zone",
    			key:      "sub_zone",
    			option:   option.SubZone("fake"),
    			expected: "fake",
    		},
    		{
    			testName: "node metadata nil",
    			key:      "meta_json_str",
    			option:   option.NodeMetadata(nil, nil),
    			expected: nil,
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  5. pkg/bootstrap/config_test.go

    	defer os.Chdir(dir)
    	// prepare a pod label file
    	tempDir := t.TempDir()
    	os.Chdir(tempDir)
    	os.MkdirAll("./etc/istio/pod/", os.ModePerm)
    	os.WriteFile(constants.PodInfoLabelsPath, []byte(`istio-locality="region.zone.subzone"`), 0o600)
    
    	node, err := GetNodeMetaData(MetadataOptions{
    		ID:                          "test",
    		Envs:                        os.Environ(),
    		ExitOnZeroActiveConnections: true,
    	})
    
    	g := NewWithT(t)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. pkg/model/proxy.go

    func ConvertLocality(locality string) *core.Locality {
    	if locality == "" {
    		return &core.Locality{}
    	}
    
    	region, zone, subzone := label.SplitLocalityLabel(locality)
    	return &core.Locality{
    		Region:  region,
    		Zone:    zone,
    		SubZone: subzone,
    	}
    }
    
    // ALPNH2Only advertises that Proxy is going to use HTTP/2 when talking to the cluster.
    var ALPNH2Only = []string{"h2"}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 17:18:17 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/kube/controller/endpointslice_test.go

    	node := generateNode("node1", map[string]string{
    		NodeZoneLabel:              "zone1",
    		NodeRegionLabel:            "region1",
    		label.TopologySubzone.Name: "subzone1",
    	})
    	addNodes(t, controller, node)
    
    	pod := generatePod("128.0.0.1", "pod1", ns, "svcaccount", "node1",
    		map[string]string{"app": appName}, map[string]string{})
    	pods := []*corev1.Pod{pod}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 18:50:38 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/loadbalancer/loadbalancer.go

    				if loadAssignment.Endpoints[i] != nil {
    					loadAssignment.Endpoints[i].LbEndpoints = nil
    				}
    			}
    			break
    		}
    	}
    }
    
    // set locality loadbalancing priority - This is based on Region/Zone/SubZone matching.
    func applyLocalityFailover(
    	locality *core.Locality,
    	loadAssignment *endpoint.ClusterLoadAssignment,
    	failover []*v1alpha3.LocalityLoadBalancerSetting_Failover,
    ) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 23 05:38:57 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  9. pkg/workloadapi/workload.proto

    message LoadBalancing {
      enum Scope {
        UNSPECIFIED_SCOPE = 0;
        // Prefer traffic in the same region.
        REGION = 1;
        // Prefer traffic in the same zone.
        ZONE = 2;
        // Prefer traffic in the same subzone.
        SUBZONE = 3;
        // Prefer traffic on the same node.
        NODE = 4;
        // Prefer traffic in the same cluster.
        CLUSTER = 5;
        // Prefer traffic in the same network.
        NETWORK = 6;
      }
      enum Mode {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 18:02:35 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  10. pilot/pkg/xds/ads.go

    		ls, f := proxy.Labels[model.LocalityLabel]
    		if f {
    			return util.ConvertLocality(ls)
    		}
    		return nil
    	}
    	return &core.Locality{
    		Region:  region,
    		Zone:    zone,
    		SubZone: subzone,
    	}
    }
    
    // initializeProxy completes the initialization of a proxy. It is expected to be called only after
    // initProxyMetadata.
    func (s *DiscoveryServer) initializeProxy(con *Connection) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
Back to top