Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for ServiceTypeLoadBalancer (0.26 sec)

  1. pkg/registry/core/service/strategy_test.go

    			svc: makeValidServiceCustom(func(svc *api.Service) {
    				svc.Spec.Type = api.ServiceTypeLoadBalancer
    				svc.Status.LoadBalancer = api.LoadBalancerStatus{
    					Ingress: []api.LoadBalancerIngress{{
    						IP: "1.2.3.4",
    					}},
    				}
    			}),
    			oldSvc: makeValidServiceCustom(func(svc *api.Service) {
    				svc.Spec.Type = api.ServiceTypeLoadBalancer
    				svc.Status.LoadBalancer = api.LoadBalancerStatus{}
    			}),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  2. pkg/proxy/iptables/number_generated_rules_test.go

    				TargetPort: intstr.FromInt32(int32(epPort)),
    			},
    		}
    
    		if svc.Spec.Type == v1.ServiceTypeNodePort || svc.Spec.Type == v1.ServiceTypeLoadBalancer {
    			services[i].Spec.Ports[0].NodePort = int32(30000 + i)
    
    		}
    		if svc.Spec.Type == v1.ServiceTypeLoadBalancer {
    			services[i].Spec.HealthCheckNodePort = int32(32000 + nServices + i)
    		}
    
    		endpointSlices[i] = eps.DeepCopy()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. pkg/registry/core/service/strategy.go

    	}
    
    	// If a user is switching to a type that doesn't need allocatedLoadBalancerNodePorts AND they did not change
    	// this field, it is safe to drop it.
    	if oldSvc.Spec.Type == api.ServiceTypeLoadBalancer && newSvc.Spec.Type != api.ServiceTypeLoadBalancer {
    		if newSvc.Spec.AllocateLoadBalancerNodePorts != nil && oldSvc.Spec.AllocateLoadBalancerNodePorts != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 13:09:36 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. pkg/proxy/servicechangetracker_test.go

    			},
    		},
    		{
    			desc:     "load balancer service",
    			ipFamily: v1.IPv4Protocol,
    
    			service: makeTestService("ns1", "load-balancer", func(svc *v1.Service) {
    				svc.Spec.Type = v1.ServiceTypeLoadBalancer
    				svc.Spec.ClusterIP = "172.16.55.11"
    				svc.Spec.LoadBalancerIP = "5.6.7.8"
    				svc.Spec.Ports = addTestPort(svc.Spec.Ports, "port3", "UDP", 8675, 30061, 7000)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  5. pkg/apis/core/v1/defaults.go

    		if obj.Spec.Type == v1.ServiceTypeNodePort || obj.Spec.Type == v1.ServiceTypeLoadBalancer || obj.Spec.Type == v1.ServiceTypeClusterIP {
    			serviceInternalTrafficPolicyCluster := v1.ServiceInternalTrafficPolicyCluster
    			obj.Spec.InternalTrafficPolicy = &serviceInternalTrafficPolicyCluster
    		}
    	}
    
    	if obj.Spec.Type == v1.ServiceTypeLoadBalancer {
    		if obj.Spec.AllocateLoadBalancerNodePorts == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 22:24:15 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/kube/controller/network_test.go

    		ObjectMeta: metav1.ObjectMeta{Name: "istio-labeled-gw", Namespace: "arbitrary-ns", Labels: map[string]string{
    			label.TopologyNetwork.Name: nw,
    		}},
    		Spec: corev1.ServiceSpec{
    			Type:  corev1.ServiceTypeLoadBalancer,
    			Ports: []corev1.ServicePort{{Port: 15443, Protocol: corev1.ProtocolTCP}},
    		},
    		Status: corev1.ServiceStatus{LoadBalancer: corev1.LoadBalancerStatus{Ingress: []corev1.LoadBalancerIngress{{
    			IP:    "2.3.4.6",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 19:09:43 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. pkg/apis/core/validation/validation_test.go

    			s.Spec.ExternalTrafficPolicy = core.ServiceExternalTrafficPolicyCluster
    		},
    		numErrs: 1,
    	}, {
    		name: "valid type loadbalancer 2 ports",
    		tweakSvc: func(s *core.Service) {
    			s.Spec.Type = core.ServiceTypeLoadBalancer
    			s.Spec.ExternalTrafficPolicy = core.ServiceExternalTrafficPolicyCluster
    			s.Spec.AllocateLoadBalancerNodePorts = utilpointer.Bool(true)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  8. plugin/pkg/admission/resourcequota/admission_test.go

    		ObjectMeta: metav1.ObjectMeta{Name: "service", Namespace: "test", ResourceVersion: "1"},
    		Spec:       api.ServiceSpec{Type: api.ServiceTypeLoadBalancer},
    	}
    	newService := &api.Service{
    		ObjectMeta: metav1.ObjectMeta{Name: "service", Namespace: "test"},
    		Spec:       api.ServiceSpec{Type: api.ServiceTypeLoadBalancer},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/conversion.go

    			portMap[uint32(p.Port)] = uint32(p.NodePort)
    		}
    		istioService.Attributes.ClusterExternalPorts = map[cluster.ID]map[uint32]uint32{clusterID: portMap}
    		// address mappings will be done elsewhere
    	case corev1.ServiceTypeLoadBalancer:
    		if len(svc.Status.LoadBalancer.Ingress) > 0 {
    			var lbAddrs []string
    			for _, ingress := range svc.Status.LoadBalancer.Ingress {
    				if len(ingress.IP) > 0 {
    					lbAddrs = append(lbAddrs, ingress.IP)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  10. pkg/registry/core/service/storage/storage.go

    	if svc.Spec.Type == api.ServiceTypeNodePort {
    		return true
    	}
    	if svc.Spec.Type == api.ServiceTypeLoadBalancer &&
    		(svc.Spec.AllocateLoadBalancerNodePorts == nil || *svc.Spec.AllocateLoadBalancerNodePorts) {
    		return true
    	}
    	return false
    }
    
    func needsHCNodePort(svc *api.Service) bool {
    	if svc.Spec.Type != api.ServiceTypeLoadBalancer {
    		return false
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 13:09:33 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top