Kubernetes Service Types

Kubernetes Service Types An architecture diagram generated by Archify. External Client · Outside the cluster · Architecture component External Client Outside the cluster ClusterIP Service · Internal access only · 10.100.10.10:80 · Kubernetes Cluster ClusterIP Service Internal access only · 10.100.10.10:80 NodePort Service · External via node IP:port · 10.100.20.20:80 · Kubernetes Cluster NodePort Service External via node IP:port · 10.100.20.20:80 LoadBalancer Service · External via load balancer · 10.100.30.30:80 · Kubernetes Cluster LoadBalancer Service External via load balancer · 10.100.30.30:80 Pod 1 · Pod 2 · Pod 3 · 10.0.1.1 · 10.0.1.2 · 10.0.1.3 · Kubernetes Cluster Pod 1 · Pod 2 · Pod 3 10.0.1.1 · 10.0.1.2 · 10.0.1.3 node IP:30080 via cloud LB port 80 → targetPort 80 Kubernetes Cluster Legend Service Pod set External client

Service types

  • • ClusterIP is internal; NodePort uses a node port; LoadBalancer uses a cloud load balancer
  • • ExternalName provides a CNAME for an external service (not shown)

Common behavior

  • • A selector chooses the pod set behind a stable Service address
  • • All three types distribute port 80 requests across selected pods