Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for ServiceTypeLoadBalancer (0.6 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/proxy/proxy.go

    	svc, err := services.Services(namespace).Get(id)
    	if err != nil {
    		return nil, err
    	}
    
    	switch {
    	case svc.Spec.Type == v1.ServiceTypeClusterIP, svc.Spec.Type == v1.ServiceTypeLoadBalancer, svc.Spec.Type == v1.ServiceTypeNodePort:
    		// these are fine
    	default:
    		return nil, fmt.Errorf("unsupported service type %q", svc.Spec.Type)
    	}
    
    	svcPort, err := findServicePort(svc, port)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 19 00:36:22 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. pilot/pkg/config/kube/gateway/context.go

    					svc.Attributes.ClusterExternalAddresses.ForEach(func(c cluster.ID, externalIPs []string) {
    						foundExternal.InsertAll(externalIPs...)
    					})
    				} else if corev1.ServiceType(svc.Attributes.Type) == corev1.ServiceTypeLoadBalancer {
    					if !foundPending.Contains(g) {
    						warnings = append(warnings, fmt.Sprintf("address pending for hostname %q", g))
    						foundPending.Insert(g)
    					}
    				}
    			} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 18:33:02 UTC 2024
    - 6.2K 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. pkg/api/service/testing/make.go

    	svc.Spec.InternalTrafficPolicy = &internalTrafficPolicy
    }
    
    // SetTypeLoadBalancer sets the service type to LoadBalancer and clears other fields.
    func SetTypeLoadBalancer(svc *api.Service) {
    	svc.Spec.Type = api.ServiceTypeLoadBalancer
    	svc.Spec.ExternalTrafficPolicy = api.ServiceExternalTrafficPolicyCluster
    	svc.Spec.AllocateLoadBalancerNodePorts = utilpointer.BoolPtr(true)
    	svc.Spec.ExternalName = ""
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/util/proxy/proxy_test.go

    		},
    		{
    			name: "loadbalancer",
    			services: []*v1.Service{
    				{
    					ObjectMeta: metav1.ObjectMeta{Namespace: "one", Name: "alfa"},
    					Spec: v1.ServiceSpec{
    						Type:      v1.ServiceTypeLoadBalancer,
    						ClusterIP: "lb",
    						Ports: []v1.ServicePort{
    							{Name: "https", Port: 443, TargetPort: intstr.FromInt32(1443)},
    							{Port: 1234, TargetPort: intstr.FromInt32(1234)},
    						},
    					},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:27 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  10. 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)
Back to top