Skip to content

Kubernetes Service types

In Kubernetes, a Service is an abstraction which defines a logical set of Pods and a policy by which to access them. Services are categorized by how they are exposed to the network^[k8s.md]. The type field in the Service definition determines the exposure strategy^[k8s.md].

Available Types

Based on the source configuration, the following service types are available^[k8s.md]:

  • LoadBalancer: Exposes the Service externally using a cloud provider's load balancer.
  • ClusterIP: Exposes the Service on a cluster-internal IP. Choosing this value makes the Service only reachable from within the cluster. This is the default type.
  • NodePort: Exposes the Service on each Node's IP at a static port (the NodePort).

Sources

^[k8s.md]