Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for ServiceTypeExternalName (0.45 sec)

  1. pkg/api/service/warnings.go

    	}
    
    	if service.Spec.Type == api.ServiceTypeExternalName && len(service.Spec.ExternalIPs) > 0 {
    		warnings = append(warnings, fmt.Sprintf("spec.externalIPs is ignored when spec.type is %q", api.ServiceTypeExternalName))
    	}
    	if service.Spec.Type != api.ServiceTypeExternalName && service.Spec.ExternalName != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 26 22:57:57 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  2. pkg/api/service/util_test.go

    			Type: api.ServiceTypeNodePort,
    		},
    	})
    	checkExternallyAccessible(false, &api.Service{
    		Spec: api.ServiceSpec{
    			Type: api.ServiceTypeExternalName,
    		},
    	})
    	checkExternallyAccessible(false, &api.Service{
    		Spec: api.ServiceSpec{
    			Type:        api.ServiceTypeExternalName,
    			ExternalIPs: []string{"1.2.3.4"},
    		},
    	})
    }
    
    func TestRequestsOnlyLocalTraffic(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 01 15:18:45 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  3. pkg/api/v1/service/util_test.go

    			Type: v1.ServiceTypeNodePort,
    		},
    	})
    	checkExternallyAccessible(false, &v1.Service{
    		Spec: v1.ServiceSpec{
    			Type: v1.ServiceTypeExternalName,
    		},
    	})
    	checkExternallyAccessible(false, &v1.Service{
    		Spec: v1.ServiceSpec{
    			Type:        v1.ServiceTypeExternalName,
    			ExternalIPs: []string{"1.2.3.4"},
    		},
    	})
    }
    
    func TestExternalPolicyLocal(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 01 15:18:45 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  4. pkg/registry/core/service/storage/alloc.go

    	// CASE A:
    	// Update service from ExternalName to non-ExternalName, should initialize ClusterIP.
    	if oldService.Spec.Type == api.ServiceTypeExternalName && service.Spec.Type != api.ServiceTypeExternalName {
    		allocated, err := al.allocClusterIPs(service, dryRun)
    		return allocated, nil, err
    	}
    
    	// if headless service then we bail out early (no clusterIPs management needed)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:05 UTC 2023
    - 37.3K bytes
    - Viewed (0)
  5. pkg/proxy/util/utils.go

    		klog.V(3).InfoS("Skipping service due to cluster IP", "service", klog.KObj(service), "clusterIP", service.Spec.ClusterIP)
    		return true
    	}
    	// Even if ClusterIP is set, ServiceTypeExternalName services don't get proxied
    	if service.Spec.Type == v1.ServiceTypeExternalName {
    		klog.V(3).InfoS("Skipping service due to Type=ExternalName", "service", klog.KObj(service))
    		return true
    	}
    	return false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/kube/conversion_test.go

    		},
    		Spec: corev1.ServiceSpec{
    			Ports: []corev1.ServicePort{
    				{
    					Name:     "http",
    					Port:     80,
    					Protocol: corev1.ProtocolTCP,
    				},
    			},
    			Type:         corev1.ServiceTypeExternalName,
    			ExternalName: "google.com",
    		},
    	}
    
    	service := ConvertService(extSvc, domainSuffix, clusterID, nil)
    	if service == nil {
    		t.Fatalf("could not convert external service")
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/util/proxy/proxy.go

    		if err != nil {
    			return nil, err
    		}
    		return &url.URL{
    			Scheme: "https",
    			Host:   net.JoinHostPort(svc.Spec.ClusterIP, fmt.Sprintf("%d", svcPort.Port)),
    		}, nil
    	case svc.Spec.Type == v1.ServiceTypeExternalName:
    		return &url.URL{
    			Scheme: "https",
    			Host:   net.JoinHostPort(svc.Spec.ExternalName, fmt.Sprintf("%d", port)),
    		}, nil
    	default:
    		return nil, fmt.Errorf("unsupported service type %q", svc.Spec.Type)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 19 00:36:22 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  8. pkg/api/service/testing/make.go

    	svc.Spec.InternalTrafficPolicy = &internalTrafficPolicy
    }
    
    // SetTypeExternalName sets the service type to ExternalName and clears other fields.
    func SetTypeExternalName(svc *api.Service) {
    	svc.Spec.Type = api.ServiceTypeExternalName
    	svc.Spec.ExternalName = "example.com"
    	svc.Spec.ExternalTrafficPolicy = ""
    	svc.Spec.ClusterIP = ""
    	svc.Spec.ClusterIPs = nil
    	svc.Spec.AllocateLoadBalancerNodePorts = nil
    	svc.Spec.InternalTrafficPolicy = nil
    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. pilot/pkg/config/kube/ingress/status.go

    	if ingressService != "" {
    		svc := s.services.Get(ingressService, IngressNamespace)
    		if svc == nil {
    			return nil
    		}
    
    		if svc.Spec.Type == corev1.ServiceTypeExternalName {
    			addrs = append(addrs, svc.Spec.ExternalName)
    
    			return addrs
    		}
    
    		for _, ip := range svc.Status.LoadBalancer.Ingress {
    			if ip.IP == "" {
    				addrs = append(addrs, ip.Hostname)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/proxy/proxy_test.go

    		},
    		{
    			name: "external name",
    			services: []*v1.Service{
    				{
    					ObjectMeta: metav1.ObjectMeta{Namespace: "one", Name: "alfa"},
    					Spec: v1.ServiceSpec{
    						Type:         v1.ServiceTypeExternalName,
    						ExternalName: "foo.bar.com",
    					},
    				},
    			},
    			endpoints: nil,
    
    			clusterMode:  expectation{url: "https://foo.bar.com:443"},
    			endpointMode: expectation{error: true},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:27 UTC 2023
    - 8.6K bytes
    - Viewed (0)
Back to top