Kubernetes Tutorials and Notes
7 posts on kubernetes, newest first.
Every GeekCoding101 post on Kubernetes, in one place. Start with the five-part series to build a multi-node cluster on your own Mac, or jump to the explainers on the control plane and kubectl contexts.
All posts are hands-on and free to read, with no sign-up.
Start here: build a Kubernetes cluster on a Mac
The Ultimate Kubernetes Tutorial series builds a local lab step by step: a Rocky Linux 9 base VM in VMware Fusion, local DNS and NTP, then a cluster of one master and four worker nodes with Flannel. Read it in order:
| Part | Post | What you do |
|---|---|---|
| 1 | Kubernetes Tutorial Part 1: Multi-Node Cluster on a Mac | Plan the cluster and networking, create a Rocky Linux 9 base VM in VMware Fusion and prepare the nodes |
| 2 | Ultimate Kubernetes Tutorial Part 2: DNS server and NTP server Configuration | Clone the base image and set up a local DNS and NTP server for the lab |
| 3 | Ultimate Kubernetes Tutorial Part 3: A Streamlined Kubernetes cluster setup | Spin up the cluster with Flannel, using Ansible |
| 4 | NodePort vs ClusterIP - Ultimate Kubernetes Tutorial Part 4 | Compare two core Service types on the running cluster |
| 5 | ExternalName and LoadBalancer - Ultimate Kubernetes Tutorial Part 5 | Route traffic outside the cluster and expose an app with a LoadBalancer |
Concepts and everyday commands
- Kubernetes Control Plane Components Explained: what etcd, kube-apiserver, kube-scheduler and the controller managers do. It also covers the node-side pieces: kubelet, kube-proxy and CoreDNS.
- kubectl Set Context: Switch Clusters and Namespaces Safely: create or edit a context with
kubectl config set-context, switch withuse-context, change the default namespace, and avoid running commands against the wrong cluster.
- 7 min read
kubectl Set Context: Switch Clusters Safely
kubectl set context explained: create or edit a context with kubectl config set-context, switch with use-context, change the namespace, and avoid the wrong cluster.
- 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.
- 22 min read
Kubernetes Tutorial Part 1: Cluster on a Mac
Build a multi-node Kubernetes lab on a Mac: plan the cluster and networking, create a Rocky Linux 9 base VM in VMware Fusion and prepare the nodes.
FAQ
Where should I start if I’m new to Kubernetes? Start with Part 1 of the series and follow the parts in order. Each one builds on the lab from the previous part. If you only need the theory, read Kubernetes Control Plane Components Explained first.
What do I need to follow the cluster series? A Mac with VMware Fusion. Part 1 walks through creating a Rocky Linux 9 base VM, and later parts clone it into the cluster nodes.
Which network plugin does the series use? Flannel, set up in Part 3.
Is it free? Yes. Every post is free to read and there is no sign-up.