Skip to main content

Command Palette

Search for a command to run...

βš“ Kubernetes Explained Like You're 5

Published
β€’2 min read
S

Building AI systems and writing about how they actually work. Master of AI @ University of Technology Sydney. Previously B.Tech CS with focus on IoT. I believe the best way to learn is to explain. That's why I'm documenting tech concepts with simple analogies (@sreekarreddy.com). AWS Certified β€’ Azure AI Certified β€’ Neo4j Professional β€’ Google Data Analytics When not coding: exploring Sydney, working on side projects, and teaching tech to anyone who'll listen.

Harbor master for your containers

Day 9 of 149

πŸ‘‰ Full deep-dive with code examples


The Harbor Master

Imagine a busy shipping port with hundreds of containers.

Someone needs to:

  • Decide which ships carry which containers
  • Replace failed containers
  • Make sure cargo is balanced
  • Handle more ships when it's busy

That's the harbor master!

Kubernetes manages your Docker containers the same way.


The Problem

You have 100 Docker containers running your app.

  • What if one crashes? πŸ’₯
  • What if traffic spikes? πŸ“ˆ
  • What if a server dies? πŸ”₯
  • How do you update without downtime?

Managing this manually = nightmare!


What Kubernetes Does

K8s (short name - count the letters between K and s!) handles:

TaskWhat K8s Does
Container died?Automatically starts a new one
Too much traffic?Spins up more containers
Traffic dropped?Removes extra containers
Update needed?Gradually replaces old with new
Server fails?Moves containers to healthy servers

The Magic

You tell Kubernetes:

"I want 5 copies of my web app running at all times."

Kubernetes keeps working to make that true:

  • Starts 5 containers
  • If one dies β†’ starts another
  • If server crashes β†’ moves to another server
  • Usually automatically, as long as the cluster has capacity

In One Sentence

Kubernetes helps manage, scale, and heal your containerized applications so they keep running the way you asked.


πŸ”— Enjoying these? Follow for daily ELI5 explanations!

Making complex tech concepts simple, one day at a time.

More from this blog

esreekarreddy

132 posts