DEV Community

zaheetdev
zaheetdev

Posted on

4 1 1 1 1

🧠 Kubernetes for Absolute Beginners: Architecture & Core Components

Hey folks! 👋
Ever felt like Kubernetes is just too much to wrap your head around?

You're not alone.

When I first started exploring Kubernetes (a.k.a. K8s), it felt like being dropped into a massive orchestra of pods, nodes, and weird words like "kubelet" and "etcd". But don't worry , if you’ve built a few Docker containers or just want to understand what all the K8s buzz is about, this post will break it down nice and easy.

Let’s dive in.


🚀 What is Kubernetes (K8s)?

Kubernetes is an open-source system created by Google that helps you deploy, scale, and manage containerized applications. Think of it as the brain that tells your containers where to run, how many to run, and what to do if something breaks.

So instead of managing 100 containers manually, Kubernetes does the heavy lifting. Cool, right?


🤔 Why Use Kubernetes?

Let’s say you’re building an app that has:

  • A frontend
  • A backend API
  • A database

In the microservices world, you’d likely package each part into its own container. But how do you:

  • Deploy all of them reliably?
  • Scale them up during peak hours?
  • Restart them if they crash?

That’s the magic of Kubernetes.

It handles all this automatically so you can focus on your app, not the infrastructure drama.


🧱 Kubernetes Architecture: Two Main Types of Nodes

Kubernetes is like a team. Every team has:

  • The brains (Master Node / Control Plane) 🧠
  • The workers (Worker Nodes) 💪

Core-components-kubectl/kubernetes

1. Master Node – The Boss

This is where the big decisions are made: scheduling, scaling, and managing the whole cluster.

Key components in the Master Node:

  • API Server (kube-apiserver) – The front door of the cluster. Every request goes through here.
  • Scheduler (kube-scheduler) – Decides where a new pod should run based on available resources.
  • Controller Manager (kube-controller-manager) – Watches everything and fixes issues (like restarting crashed pods).
  • etcd – A lightweight key-value store where cluster state and config are saved. Think of it as K8s’ memory.

2. Worker Node – The Doers

This is where your actual apps (pods/containers) run.

Key components in each Worker Node:

  • Kubelet – Talks to the master node, ensures containers run as expected.
  • Container Runtime – The software that runs the containers (like Docker or containerd).
  • Kube-Proxy – Manages network traffic so services can talk to each other smoothly.

🧩 Core Kubernetes Components (The Building Blocks)

These are the things you’ll interact with the most as a developer:

Component Description
Pod Smallest unit in K8s; wraps around one or more containers.
Service Exposes a group of pods to other services or the internet.
Ingress Manages external HTTP traffic into the cluster.
ConfigMap Stores config data (like environment variables) separately from code.
Secret Like ConfigMap, but for sensitive data (passwords, tokens).
Volume Allows containers to store data that survives restarts.
Deployment Defines how to deploy stateless apps (like your frontend).
StatefulSet For deploying stateful apps like databases, where order and identity matter.

🛠️ TL;DR – What Happens Behind the Scenes?

Here’s a quick example:

  1. You tell Kubernetes: “Hey, I want 3 replicas of my app running.”
  2. The API Server hears you and stores the request in etcd.
  3. The Scheduler picks the best Worker Nodes.
  4. The Controller ensures the right number of pods are always running.
  5. The Kubelet on the selected nodes spins up the pods.
  6. Kube-Proxy ensures everything can talk to each other.

Boom 💥 – your app is up and running, at scale.


💡 Final Thoughts

Kubernetes might seem complex at first, but once you break it down, it’s just a well-organized system doing smart things for your containers.

Start with the big picture, understand the core components, and don’t worry about mastering everything all at once.

Just remember: every expert was once a beginner 🙌


If this helped you understand Kubernetes a bit better, drop a 💙 or share it with someone who's also getting started.

I’ll be posting Part 2 soon where we’ll explore Deployments, Services, and Ingress in action , with hands-on examples.

Until next time,
Happy containerizing 🚢


ACI image

ACI.dev: Best Open-Source Composio Alternative (AI Agent Tooling)

100% open-source tool-use platform (backend, dev portal, integration library, SDK/MCP) that connects your AI agents to 600+ tools with multi-tenant auth, granular permissions, and access through direct function calling or a unified MCP server.

Star our GitHub!

Top comments (2)

Collapse
 
artjoker_dev_team profile image
Artjoker_Dev_Team

Really great intro, thnx. Super helpful for anyone just getting started with K8s. We've used Kubernetes on a bunch of projects, mostly for microservice-based apps in fintech and ecom, and honestly, once you get the hang of it, it's hard to imagine going back. Scaling, updates, recovery... it just makes life easier. Excited to see what you’ll cover in Part 2!

Collapse
 
zaheetdev profile image
zaheetdev

glad you liked it!

Tiger Data image

🐯 🚀 Timescale is now TigerData: Building the Modern PostgreSQL for the Analytical and Agentic Era

We’ve quietly evolved from a time-series database into the modern PostgreSQL for today’s and tomorrow’s computing, built for performance, scale, and the agentic future.

So we’re changing our name: from Timescale to TigerData. Not to change who we are, but to reflect who we’ve become. TigerData is bold, fast, and built to power the next era of software.

Read more

👋 Kindness is contagious

Dive into this engaging article on the vibrant DEV Community—all devs are welcome to share insights and boost our collective expertise.

A quick “thank you” can brighten someone’s day—drop your kudos in the comments!

In DEV, knowledge-sharing forges stronger bonds. Enjoyed this read? A small nod of appreciation for the author speaks volumes.

Join the conversation