CertGrid CertGrid
Hands-on Lab·Certified Kubernetes Administrator

Services: ClusterIP, NodePort and LoadBalancer

Three Service types that stack on top of each other, one address that nothing owns and that ping cannot reach, and a LoadBalancer that stays Pending forever on bare metal. Each behaviour is shown rather than described.

Services and Networking Guide 47 of 103 Intermediate

The Pending LoadBalancer is the correct result on a cluster with no cloud controller, not a broken lab.

Four nodes, which is what makes the NodePort behaviour visible.
Server NameIP AddressOSRolesCPURAMHDD
CKA1001192.168.0.175Ubuntu 26.04 LTSControl Plane Node2 Core4 GB50 GB
CKA1001-NODE01192.168.0.176Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA1001-NODE02192.168.0.177Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA1001-NODE03192.168.0.178Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

This guide includes

Use this when a workload has to be reachable and you are choosing how far out to expose it. This matters because the three Service types stack rather than compete - each is the previous one plus something extra - and only the last needs help from outside the cluster.

Before you start

  1. ClusterIP, and an address that nothing owns

  2. NodePort: the same Service, plus a port on every node

  3. LoadBalancer, and why it never gets an address here

Official sources