Infrastructure / DevOps

Kubernetes Explained

Kubernetes explained: how it runs containers across a cluster of machines, what pods, Deployments and Services do, and how desired state keeps apps running.

  • 3 min read
  • 3 questions
  • +25 XP
Transcript

Kubernetes explained by cats. Kitty builds an app, puts it in a container box. Docker, Containerd, Podman, all work. At first, one box is enough. Then many kitties arrive. One box can't handle them. Kitty makes more boxes. Across many computers, a cluster.

Now it's chaos. Which computer runs which box? What if one crashes? Kitty discovers Kubernetes. Kubernetes is the orchestrator. Kitty tells Kubernetes the goal. I want five boxes of my app always running. Kubernetes spreads the boxes across the cluster.

If one box dies, Kubernetes makes a new one. If one computer fails, Kubernetes moves boxes to another. It adds boxes when more users arrive. It removes boxes when things are quiet. Containers are the boxes. The cluster is the playground. Kubernetes is the cat sitter.