Certified Kubernetes Administrator (CKA) · Section 3 · 20% of the exam
Use ClusterIP, NodePort, LoadBalancer service types and endpoints
One of the objectives of the Certified Kubernetes Administrator (CKA) exam, in the section “Services and Networking”. Here is what it covers, the points to remember and a question to try.
What it covers
A Service gives a changing set of Pods one stable virtual IP and DNS name. ClusterIP, NodePort and LoadBalancer build on each other, EndpointSlices track the ready Pods behind them, and kube-proxy programs the rules on every node.
Points to remember
- ClusterIP is the default type and is reachable only inside the cluster
- NodePort adds a port on every node (default 30000-32767); LoadBalancer adds an external load balancer on top
- port is the Service port, targetPort the container port, nodePort the node port
- ExternalName returns a CNAME and has no selector or proxying
- EndpointSlices replace Endpoints (deprecated since 1.33); up to 100 endpoints per slice by default
Try a question
What is the default range of node ports for NodePort Services?
- A1024-65535
- B30000-32767
- C10250-10259
- D8000-9000
Show the answer
B. The control plane allocates a port from --service-node-port-range, default 30000-32767, and every node proxies it to the Service.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Services and Endpoints teaches this objective (about 45 minutes), and 17 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.