Kubernetes is the standard way to run containers in production — but most tutorials start with YAML before explaining what Kubernetes is actually for. This tutorial does the opposite. First the idea, then the pieces, then a real example you can run on your laptop.
This is a shortened version of the full tutorial on DevOps Job Updates. You need no prior Kubernetes experience for it. You should be comfortable with the Linux terminal and know what a Docker container is.
What Is Kubernetes, in Plain Language?
Imagine you have ten copies of a web application running in Docker containers across three servers. One container crashes. Traffic doubles. You need to update the application without downtime. Doing all of that by hand is slow and error-prone.
Kubernetes automates it. You describe the desired state — "I want three copies of this application running, reachable on port 80" — and Kubernetes continuously works to make reality match that description. If a container dies, it starts a replacement. If traffic grows, it can add copies. If you publish a new version, it rolls it out gradually and rolls back if the new version fails.
That idea — desired state, continuously reconciled — is the whole of Kubernetes. Everything else is detail.
The Architecture: Control Plane and Nodes
A Kubernetes cluster has two kinds of machines:
- The control plane makes decisions: it stores the desired state, schedules work, and watches the health of everything. Its main components are the API server, etcd, the scheduler, and the controller manager.
- Worker nodes run the actual applications. Each node runs a kubelet and a kube-proxy.
You rarely need to manage the control plane yourself as a beginner. Managed services (Amazon EKS, Google GKE, Azure AKS) run it for you, and local tools (minikube, kind) run a single-node cluster on your laptop.
Core Concepts, One by One
- Pod — the smallest deployable unit, usually holding one container. You almost never create Pods directly; a Deployment creates them for you.
- Deployment — says "run N copies of this container image, and keep them running." Change the image and it performs a rolling update.
- Service — gives your application a stable name and address inside the cluster, and load-balances traffic across the healthy Pods behind it.
- ConfigMap and Secret — configuration outside the image. A Secret stores sensitive data; a warning that matters: a Secret is base64-encoded, not encrypted by default.
- Namespace — a virtual cluster inside a cluster, for example dev, staging and prod.
- Ingress — routes external HTTP traffic to the right Service based on host name or URL path.
- Volumes and PersistentVolumeClaims — durable storage that survives Pod restarts.
A Runnable Example: Deploy nginx
Install minikube or kind and start a cluster, then create a Deployment running three copies of nginx (apiVersion apps/v1, kind Deployment, metadata name nginx-deployment, spec replicas 3, selector matchLabels app nginx, template with container nginx image nginx:1.27 port 80). Then run: kubectl apply -f nginx-deployment.yaml; kubectl get pods; kubectl expose deployment nginx-deployment --type=NodePort --port=80; kubectl scale deployment nginx-deployment --replicas=5; kubectl rollout undo deployment/nginx-deployment.
If you can run that sequence, explain what each step did, and recover when a Pod fails, you understand the core of Kubernetes.
Common Beginner Mistakes
- Treating Pods as permanent. Pods are cattle, not pets — never store important data in a Pod's filesystem.
- Using latest as the image tag. Pin a version, so rollbacks stay reliable.
- No resource requests and limits.
- Secrets in plain YAML committed to Git.
- Skipping health checks — readiness and liveness probes.
- Learning YAML before concepts.
Version note: the latest Kubernetes minor release is 1.37 ("Garhwal", released 26 Aug 2026; latest patch 1.37.2).
Closing line: This is a shortened version of the full tutorial. Read the complete guide, with the full nginx example, every core concept explained, and the FAQ, on DevOps Job Updates: https://devopsjobupdates.com/kubernetes-tutorial-beginners/