Kubernetes Tutorial: Build a Cluster, Then Understand It
5 posts on kubernetes-tutorial, newest first.
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.
| Step | Post | What you’ll do | Read time |
|---|---|---|---|
| Part 2 | Ultimate Kubernetes Tutorial Part 2: DNS server and NTP server Configuration | Clone the base image and set up local DNS and NTP servers | 7 min |
| Part 3 | Ultimate Kubernetes Tutorial Part 3: A Streamlined Kubernetes cluster setup | Bring up the cluster with Flannel (with Ansible) | 18 min |
| Part 4 | NodePort vs ClusterIP - Ultimate Kubernetes Tutorial Part 4 | Compare the two core Service types on the 1 master + 4 worker cluster | 15 min |
| Part 5 | ExternalName and LoadBalancer - Ultimate Kubernetes Tutorial Part 5 | Route traffic outside the cluster and expose an app externally | 17 min |
| Next | Kubernetes Control Plane Components Explained | Learn what etcd, kube-apiserver, kube-scheduler, the controller managers, kubelet, kube-proxy and CoreDNS each do | 7 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.
- 7 min read
Kubernetes Control Plane Components Explained
What each Kubernetes control plane component does: etcd, kube-apiserver, kube-scheduler, controller managers, plus kubelet, kube-proxy and CoreDNS.
- 17 min read
ExternalName and LoadBalancer - Ultimate Kubernetes Tutorial Part 5
Hey, welcome back to my ultimate Kubernetes tutorials! So far, we’ve explored ClusterIP and NodePort, but what if you need to route traffic outside your cluster or expose your app with a real…
- 11 min read
NodePort vs ClusterIP: Kubernetes Service Types Explained
NodePort vs ClusterIP on a real 1 master + 4 worker cluster: deploy Nginx, expose it both ways, test access, and fix CoreDNS and firewalld issues.
- 18 min read
Kubernetes Cluster Setup on Rocky 9 with kubeadm & Flannel
Kubernetes tutorial Part 3: build a local cluster (1 control plane, 4 workers) on Rocky Linux 9 VMs with containerd, kubeadm and Flannel, step by step.
- 10 min read
K8s Tutorial Part 2: BIND DNS and Chrony NTP on Rocky 9
Kubernetes on Mac, Part 2: clone a Rocky Linux 9 VM into a BIND DNS server with forward and reverse zones, plus a Chrony NTP server.
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.