Title: Understanding Kubernetes Architecture: A Beginner's Guide

Kubernetes is a powerful system for managing containerized applications. But before diving into YAML files, pods, and deployments, it’s important to understand how Kubernetes is structured under the hood.

This blog breaks down the Kubernetes architecture in a simple, visual, and beginner-friendly manner.


🌟 What is Kubernetes?

Kubernetes, a.k.a. K8s, is like the captain of your containerized ship — steering thousands of Docker containers smoothly across seas of virtual machines.

It helps automate:

  • 🔄 Deployments

  • 📈 Scaling

  • 🛠️ Management

Whether you're deploying a simple app or orchestrating microservices across clouds, Kubernetes has your back..

💡 Why is it called K8s?

Because “Kubernetes” is a mouthful! So we use K8s:

  • “K” is the first letter

  • “s” is the last

  • And there are 8 letters in between. Simple, right?

(It’s just like i18n for internationalization.)

Ever seen that 7-spoke ship wheel? It’s not just for aesthetics.

The logo reflects Kubernetes’ maritime roots. After all:

  • Containers = Shipping containers (like Docker)

  • Kubernetes = “Helmsman” in Greek

  • The ship wheel? Because Kubernetes is at the helm, navigating containers through stormy seas 🧭

Let's break it down into Control Plane and Worker Nodes.

⚖️ The Two Pillars of Kubernetes

Kubernetes has two main sections:

🧠 Control Plane = The Brain

This is the command center. It makes decisions, schedules workloads, and ensures the cluster's desired state.

Components:

  • API Server – The receptionist: it handles all kubectl commands.

  • Scheduler – The planner: it decides where your pods go.

  • Controller Manager – The babysitter: it ensures everything is as expected.

  • etcd – The memory: a key-value database that stores all cluster data.


💪 Worker Nodes = The Muscle

These do the actual heavy lifting — running your apps.

Components:

  • Kubelet – The caretaker: talks to the control plane and runs pods.

  • Kube Proxy – The networker: enables traffic between services.

  • Container Runtime – Like Docker or containerd, it runs the containers.


Architecture Diagram :

🔄 What Happens When You Deploy?

Let’s say you run:

bashCopyEditkubectl run nginx --image=nginx

Here’s what happens behind the scenes:

  1. 📨 You send a request to the API Server.

  2. 📦 The Scheduler assigns your pod to a node.

  3. 🔧 The Kubelet pulls the image and starts it.

  4. 🌐 The Kube Proxy handles networking.

  5. 👀 The Controller Manager keeps watch to ensure it's running as expected.


🧠 Real-World Analogy: Air Traffic Control

Think of Kubernetes like an airport:

  • The API Server is the control tower – all planes (pods) get instructions from here.

  • The Scheduler is air traffic control – it finds the best available runway (node) for the plane to land.

  • The Controller Manager ensures all flights (pods) are on time and accounted for.

  • The etcd database is the flight schedule – it remembers everything about who’s supposed to be where.

  • The Worker nodes are the runways and ground crew – making sure planes take off, land, and passengers (apps) run smoothly.

🛡️ How Kubernetes Ensures High Availability

  • Multiple masters (HA setup): If one control plane component fails, others take over.

  • Health checks: Kubernetes constantly checks the health of nodes and pods.

  • Self-healing: Crashed pods? K8s restarts them.

  • Load balancing: Even distribution of pods to avoid overload.

💭 Common Misconceptions

MythReality
Kubernetes is the same as DockerNo – Docker is a container runtime, Kubernetes is a container orchestrator.
You need to learn everything before using itNope! Start small, build up as you go.
Kubernetes is only for large companiesIt’s used by startups, students, and big corps alike.

📚 Fun Fact: Kubernetes was born at Google

  • Kubernetes is inspired by Google’s internal cluster manager called Borg.

  • It was donated to the Cloud Native Computing Foundation (CNCF) in 2015.

  • The word “Kubernetes” comes from Greek, meaning “helmsman” or “pilot.”

0
Subscribe to my newsletter

Read articles from Shraddha Modhera directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Shraddha Modhera
Shraddha Modhera