Cloud API Overview > @adpt/cloud > k8s > ServiceSpec > type
k8s.ServiceSpec.type property
Determines how the Service is exposed.
Signature:
type?: string;
Remarks
Valid options are:
"ExternalName"
: maps to the specified externalName."ClusterIP"
: allocates a cluster-internal IP address for load balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP."NodePort"
: Builds on ClusterIP and allocates a port on every node which routes to the clusterIP."LoadBalancer"
: Builds on NodePort and creates an external load balancer (if supported in the current cloud) which routes to the clusterIP.
For more information, see the Kubernetes documentation.