Introduction
Kubernetes can feel overwhelming at the beginning.
You hear terms like:
- Pods
- Nodes
- Deployments
- Clusters
But itβs not always clear what they actually mean in practice.
This blog explains Kubernetes from scratch, focusing only on what matters when you’re starting.
No complex theory β just a simple understanding you can build on.
1. What is Kubernetes in simple terms?
Kubernetes is a system that helps you:
π Run and manage applications inside containers.
Instead of running containers manually, Kubernetes takes care of:
- Starting containers
- Restarting them if they fail
- Scaling them
- Distributing them across machines
2. Why do we need Kubernetes?
Without Kubernetes:
- You run containers manually
- If one crashes β you restart it
- If traffic increases β you manually add more
With Kubernetes:
- It automatically handles failures
- It automatically handles scaling
- It distributes load across systems
3. What is a Cluster?
A Kubernetes cluster is simply:
π A group of machines working together to run your applications
It has two main parts:
- Control Plane β makes decisions
- Worker Nodes β run your applications
4. What is a Node?
A Node is a machine (VM or server) where your applications run.
Each node has:
- CPU
- Memory
- Storage
Kubernetes uses multiple nodes to:
- Distribute workloads
- Avoid single point of failure
5. What is a Pod?
A Pod is the smallest unit in Kubernetes.
π It is where your container actually runs.
Think of it like:
- Docker container β inside a Pod
- Pod β managed by Kubernetes
Example:
kubectl get pods
This shows all running Pods.
6. What is a Deployment?
A Deployment helps you manage Pods.
Instead of creating Pods manually, you tell Kubernetes:
π βI want 3 copies of my app runningβ
Kubernetes ensures:
- 3 Pods are always running
- If one fails β it creates another
7. What is a Service?
Pods are temporary and can change.
A Service provides:
π A stable way to access your application
Instead of connecting directly to a Pod, you connect to the Service.
Example:
kubectl get svc
8. Basic workflow (very important)
This is how Kubernetes actually works:
- You define what you want (YAML file)
- Kubernetes receives the request
- It creates Pods
- It schedules them on Nodes
- It keeps checking if everything is running
Basic command example:
kubectl apply -f deployment.yaml
9. Key idea beginners must understand
Kubernetes is not executing commands step-by-step.
It is constantly doing:
π Compare β Fix β Repeat
Example:
- You say: 3 Pods
- Only 2 running
π Kubernetes automatically creates 1 more
10. Common beginner mistakes
β Expecting immediate results
Kubernetes works in loops, not instantly.
β Checking logs too early
If Pod is not running, logs wonβt exist.
β Confusing Pod with container
- Pod β Kubernetes object
- Container β runs inside Pod
11. Simple command set to start with
kubectl get pods
kubectl get nodes
kubectl get deployments
kubectl get svc
π These are enough to understand whatβs running.
12. What should you learn next?
After this, focus on:
- Pods lifecycle
- Deployments
- Services
- Debugging issues
Then move to:
- StatefulSet
- DaemonSet
- Storage
π InfraDecode Takeaway
Kubernetes is not complicated β it just manages containers at scale.
Start by understanding Pods, Nodes, and Deployments first.
Everything else builds on top of these basics.
Focus on flow, not definitions β and learning becomes easier.
Discover more from
Subscribe to get the latest posts sent to your email.
