GeekCoding101 make your way to geek

Kubernetes Tutorial: Build a Cluster, Then Understand It

5 posts on kubernetes-tutorial, newest first.

5posts
2025first post

This is GeekCoding101’s hands-on Kubernetes tutorial collection. You set up a real cluster of 1 master and 4 worker nodes, then work through the core Service types: ClusterIP, NodePort, ExternalName and LoadBalancer. A separate explainer then breaks down what each control plane component actually does.

Every post is a step-by-step guide you can follow on your own machines. All of it is free to read, with no sign-up.

Suggested reading order

The series builds on itself, so read it in order. Part 1, which covers building the base VM image, is part of the series but isn’t tagged here. Start there if you’re building from scratch.

StepPostWhat you’ll doRead time
Part 2Ultimate Kubernetes Tutorial Part 2: DNS server and NTP server ConfigurationClone the base image and set up local DNS and NTP servers7 min
Part 3Ultimate Kubernetes Tutorial Part 3: A Streamlined Kubernetes cluster setupBring up the cluster with Flannel (with Ansible)18 min
Part 4NodePort vs ClusterIP - Ultimate Kubernetes Tutorial Part 4Compare the two core Service types on the 1 master + 4 worker cluster15 min
Part 5ExternalName and LoadBalancer - Ultimate Kubernetes Tutorial Part 5Route traffic outside the cluster and expose an app externally17 min
NextKubernetes Control Plane Components ExplainedLearn what etcd, kube-apiserver, kube-scheduler, the controller managers, kubelet, kube-proxy and CoreDNS each do7 min

What the series covers

Cluster setup

  • Parts 2 and 3 take you from a base VM image to a running cluster.
  • Along the way you set up local DNS and NTP servers, then install Kubernetes with Flannel as the pod network.

Services and networking

  • Parts 4 and 5 walk through how Kubernetes exposes workloads, from ClusterIP up to LoadBalancer.
  • ClusterIP keeps a Service reachable only inside the cluster.
  • NodePort opens a port on every node.
  • ExternalName maps a Service to an external DNS name.
  • LoadBalancer exposes an app through an external load balancer.

Control plane

  • The control plane post explains the components behind the cluster you just built: what each one is responsible for and how they fit together.

FAQ

What order should I read these Kubernetes tutorials in? Read them in series order: Part 1 (base VM image), then Parts 2 through 5, then the control plane explainer. Each part picks up where the last one left off.

What kind of cluster does the tutorial build? A cluster with 1 master and 4 worker nodes, using Flannel for pod networking. Local DNS and NTP servers are set up first in Part 2.

What’s the difference between NodePort and ClusterIP? ClusterIP gives a Service an internal IP that is only reachable from inside the cluster. NodePort also opens a port on every node, so the Service can be reached from outside. Part 4 compares them hands-on.

What are the Kubernetes control plane components? The core components are etcd, kube-apiserver, kube-scheduler and the controller managers. The explainer also covers node-level and add-on pieces: kubelet, kube-proxy and CoreDNS.

Are these tutorials free? Yes. Every GeekCoding101 post is free to read, with no sign-up.