Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for ServiceTypeLoadBalancer (0.34 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. pilot/pkg/xds/mesh_network_test.go

    				Namespace: "istio-system",
    				Labels: map[string]string{
    					label.TopologyNetwork.Name: "network-1",
    				},
    			},
    			Spec: corev1.ServiceSpec{
    				Type:  corev1.ServiceTypeLoadBalancer,
    				Ports: []corev1.ServicePort{{Port: 15443, Protocol: corev1.ProtocolTCP}},
    			},
    			Status: corev1.ServiceStatus{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. pkg/registry/core/service/storage/alloc.go

    		(service.Spec.Type == api.ServiceTypeExternalName || service.Spec.Type == api.ServiceTypeClusterIP) {
    		al.releaseNodePorts(oldService, nodePortOp)
    	}
    
    	// Update service from any type to NodePort or LoadBalancer, should update NodePort.
    	if service.Spec.Type == api.ServiceTypeNodePort || service.Spec.Type == api.ServiceTypeLoadBalancer {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:05 UTC 2023
    - 37.3K bytes
    - Viewed (0)
  9. 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)
  10. pilot/pkg/serviceregistry/kube/conversion_test.go

    		},
    		Spec: corev1.ServiceSpec{
    			Ports: []corev1.ServicePort{
    				{
    					Name:     "http",
    					Port:     80,
    					Protocol: corev1.ProtocolTCP,
    				},
    			},
    			Type: corev1.ServiceTypeLoadBalancer,
    		},
    		Status: corev1.ServiceStatus{
    			LoadBalancer: corev1.LoadBalancerStatus{
    				Ingress: addresses,
    			},
    		},
    	}
    
    	service := ConvertService(extSvc, domainSuffix, clusterID, nil)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top