What is Kubernetes?
Kubernetes (K8s) is open-source software that runs containers across a group of machines. You tell it what should run, and it starts, restarts, scales and spreads your apps across healthy machines for you.
Check if I need KubernetesHow a Kubernetes cluster works
Add replicas or fail a node to watch the scheduler move pods. Then pick a building block to see what it does.
- node-1
- pod 1
- node-2
- pod 2
- node-3
- pod 3
The Deployment asks for 3 replicas. The scheduler spreads them across 3 nodes.
Pod
The smallest unit Kubernetes runs. A pod wraps one or more containers that share an IP address and storage. Pods are disposable: Kubernetes replaces them rather than repairing them.
Single server vs Docker Compose vs Kubernetes
Each step adds resilience and complexity. Pick the simplest option that meets your uptime and scaling needs.
| Factor | Single server | Docker Compose | Kubernetes |
|---|---|---|---|
| What it does | Runs your app directly on one machine | Runs several containers on one machine from a single file | Runs containers across many machines and keeps them healthy |
| If a machine fails | The app is down until you fix it | The app is down until you fix the machine | Pods move to healthy nodes automatically |
| Scaling | Upgrade to a bigger server | Change replica counts by hand on one host | Scale replicas and nodes, manually or automatically |
| Effort to run | Lowest | Low | Highest; managed services reduce it |
Where Kubernetes is used
- Streaming and shopping sites
- Large consumer apps run hundreds of services on Kubernetes so traffic spikes and failures do not take the site down.
- Managed cloud services
- Google GKE, Amazon EKS and Azure AKS run the control plane for you, so teams only deploy their workloads.
- AI and data jobs
- Teams schedule model training, batch jobs and GPU workloads on shared clusters.
- Home labs
- Hobbyists run lightweight distributions such as k3s on a few Raspberry Pis to learn how clusters work.
Do I need Kubernetes?
Answer five questions to see whether a simpler setup, managed Kubernetes or a full cluster fits your project. Your answers stay in this page.
Frequently asked questions
What is Kubernetes in simple terms?
Kubernetes is open-source software that runs containers across a group of machines. You describe what should run, such as three copies of a web app, and Kubernetes starts them, restarts them when they fail and spreads them across healthy machines.
What does K8s stand for?
K8s is shorthand for Kubernetes. The 8 replaces the eight letters between the K and the s.
What is the difference between Docker and Kubernetes?
Docker builds and runs containers on one machine. Kubernetes schedules and manages many containers across many machines, including restarts, scaling, networking and rolling updates. Kubernetes can run the same container images that Docker builds.
What is a pod in Kubernetes?
A pod is the smallest unit Kubernetes runs. It wraps one or more containers that share a network address and storage. Kubernetes places each pod on a node and replaces it if it fails.
Do small projects need Kubernetes?
Usually not. A single server, a platform-as-a-service or Docker Compose is simpler for one app with modest traffic. Kubernetes pays off when you run many services, need automatic failover across machines or have a team to operate it.