This Kubernetes guide for beginners explains how container systems fit together, using plain language and a small example you can run yourself. Kubernetes has become the standard way to run containers at scale: the CNCF's 2026 survey found that 82% of container users now run it in production, up from 66% in 2023. That popularity makes it a valuable skill, and a confusing one, because most introductions drop you into dozens of unfamiliar terms at once. Here we go in order: what containers are, how a cluster is built, the handful of objects you need first, a hands-on deployment, and the security, cost, and learning decisions that come after.
What Is Kubernetes, and Why Do Containers Need It?
Kubernetes (often written K8s) is an open-source platform that automates how containerized applications are deployed, scaled, and kept running across a group of machines. Google originally built it, and it is now maintained by the Cloud Native Computing Foundation (CNCF).
Running one container on one laptop is easy. Running hundreds across many servers is not: containers crash, servers fail, traffic spikes, and updates must not cause downtime. Kubernetes handles that work. You describe the state you want, for example, 'three copies of this web app, always', and Kubernetes continuously works to make reality match that description.
Containers 101: The Building Block
A container packages an application together with everything it needs to run, such as libraries and settings, so it behaves the same on a laptop, a test server, or a cloud provider. Unlike a virtual machine, a container shares the host's operating system kernel, which makes it much lighter and faster to start.
Containers are built from images, which are read-only templates stored in a registry. Images follow the Open Container Initiative (OCI) standard, so an image built with Docker runs on any compatible runtime. Kubernetes does not build images; it runs them, using a container runtime such as containerd or CRI-O.
How Kubernetes Works: Architecture
A Kubernetes installation is called a cluster. It has two kinds of machines.
The Control Plane: The Brain
The control plane makes decisions. Its main parts are the API server (the front door every command goes through), etcd (a database that stores the cluster's desired and current state), the scheduler (which picks a node for each new workload), and the controller manager (which watches the cluster and corrects any drift from the desired state).
Worker Nodes: The Muscle
Worker nodes run your applications. Each node has a kubelet (an agent that takes instructions from the control plane and starts containers), kube-proxy (which handles networking rules), and a container runtime. The key idea is the reconciliation loop: you declare what you want, and controllers keep comparing it with what exists and fixing the difference. That loop is what produces self-healing.
4. The Core Objects Every Beginner Should Know
Kubernetes has many resource types. These are the ones to learn first.
Object
What it does
Pod
The smallest deployable unit: one or more tightly coupled containers sharing network and storage. Pods are temporary and can be replaced at any time.
Deployment
Manages a set of identical pods, handles rolling updates and rollbacks, and keeps the desired number running.
ReplicaSet
Keeps a specified number of pod copies running. You normally manage it through a Deployment rather than directly.
Service
A stable network address and load balancer for a group of pods, because pod IP addresses change.
Ingress / Gateway API
Routes external HTTP and HTTPS traffic to Services, with host and path rules.
ConfigMap and Secret
Hold configuration and sensitive values separately from the container image.
Namespace
A logical partition inside a cluster, useful for separating teams or environments.
PersistentVolume and Claim
Storage that outlives any single pod, for databases and other stateful workloads.
StatefulSet, DaemonSet, Job
Specialised controllers for stateful apps, one-pod-per-node agents, and run-to-completion tasks.
5. Hands-On: Your First Deployment
Install Docker (or another container runtime), kubectl (the command-line tool), and kind or minikube to create a local cluster. With kind, one command creates a single-node practice cluster:
kind create cluster --name practice
kubectl cluster-info
kubectl get nodes
Now describe an application in a file called deployment.yaml. This Deployment asks for three copies of an nginx web server:
apiVersion: apps/v1
kind: Deployment
metadata:
name: web
spec:
replicas: 3
selector:
matchLabels:
app: web
template:
metadata:
labels:
app: web
spec:
containers:
name: web
image: nginx:1.27
ports:
containerPort: 80
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
memory: 256Mi
Read it from the top: replicas is how many pods you want; the selector and labels tie the Deployment to its pods; the image is what to run; and requests and limits tell Kubernetes how much CPU and memory the container needs, which is how the scheduler places it sensibly. Apply it and watch the pods start:
kubectl apply -f deployment.yaml
kubectl get pods
kubectl describe deployment web
kubectl logs deployment/web
Pods are not reachable by a stable address, so add a Service. Save this as service.yaml:
apiVersion: v1
kind: Service
metadata:
name: web
spec:
selector:
app: web
ports:
port: 80
targetPort: 80
type: ClusterIP
Apply it, then forward a local port to try the app in your browser at http://localhost:8080:
kubectl apply -f service.yaml
kubectl port-forward service/web 8080:80
A ClusterIP Service is reachable only inside the cluster. To expose an app externally you would use a LoadBalancer Service or an Ingress, covered in the managed-service documentation of your cloud provider.
6. Scaling, Updates, and Self-Healing
Scaling
Change the number of replicas manually, or let the Horizontal Pod Autoscaler adjust it based on CPU or other metrics:
kubectl scale deployment web --replicas=5
kubectl autoscale deployment web --min=3 --max=10 --cpu-percent=70
Rolling Updates and Rollbacks
When you change the image or settings in a Deployment, Kubernetes replaces pods gradually so the app stays available. If the new version misbehaves, you can go back:
kubectl rollout status deployment/web
kubectl rollout history deployment/web
kubectl rollout undo deployment/web
Self-Healing
Delete one of the pods with kubectl delete pod and run kubectl get pods again. A replacement appears almost immediately, because the Deployment's desired state says three. Adding liveness and readiness probes goes further: Kubernetes restarts unhealthy containers and stops sending traffic to pods that are not ready.
Kubernetes Security Basics
Kubernetes is flexible, but it is not locked down by default. Beginners should build these habits from day one.
● Use RBAC (role-based access control) to give people and services only the permissions they need, and avoid handing out cluster-admin.
● Treat Secrets carefully. By default they are base64-encoded, not encrypted, so enable encryption at rest and restrict who can read them.
● Run containers as a non-root user, drop unneeded privileges, and apply the Pod Security Standards for your namespaces.
● Use network policies to control which pods can talk to each other; by default, all pods can reach all pods.
● Pin image versions instead of using the 'latest' tag, pull from trusted registries, and scan images for known vulnerabilities.
● Keep Kubernetes itself up to date, since each minor version is supported for a limited time.
The CISA and NSA Kubernetes Hardening Guidance and the CIS Kubernetes Benchmark are good next reads. Teams in regulated sectors should map these controls to the frameworks they answer to, such as SOC 2, HIPAA, or FedRAMP in the United States and APRA's CPS 234 and the Privacy Act in Australia.
Running Kubernetes: Local, Managed, or Self-Managed
Local Clusters for Learning
kind runs a cluster inside Docker containers and is quick to create and destroy, which suits practice and automated tests. minikube offers a similar single-node experience with more add-ons. Both are free and run on a laptop.
Managed Services for Production
Amazon EKS, Azure AKS, and Google GKE run the control plane for you, handle upgrades, and integrate with each provider's networking, identity, and storage. For most organisations this is the sensible default, and all three are available in Australian regions, which helps with data residency. Australian organisations are forecast by Gartner to spend more than AU$33.6 billion on public cloud in 2026, with Platform-as-a-Service growing around 21%, so managed container platforms are a natural fit for that growth.
Self-Managed Clusters
Running your own control plane gives maximum control but also maximum responsibility for upgrades, security patching, backups, and high availability. It is usually justified only by on-premises, edge, or strict sovereignty requirements.
When You Should Not Use Kubernetes
Kubernetes is powerful, but it adds real operational weight. It is often the wrong choice for a single small application, a team with no one to own the platform, or a workload that a managed platform-as-a-service or serverless option would run more cheaply. A simple rule: if you cannot name the problem Kubernetes solves for you, such as many services, frequent deployments, portability needs, or elastic scale, start with something simpler and move later. The CNCF survey's finding that organisational issues now outrank technical ones as the main adoption barrier points the same way: the platform is only as good as the team and processes around it.
Frequently Asked Questions
What is Kubernetes?
Kubernetes is an open-source platform that automates the deployment, scaling, and management of containerized applications across a cluster of machines.
What is the difference between Docker and Kubernetes?
Docker builds and runs containers, typically on a single host. Kubernetes orchestrates containers across many hosts, handling scheduling, scaling, networking, and recovery. They are complementary: images built with Docker run on Kubernetes through an OCI-compatible runtime.
Do I need to learn Docker before Kubernetes?
You need to understand containers and images, and building one yourself is the best way to learn. You do not need Docker specifically for the cluster, since Kubernetes uses runtimes such as containerd.
What is a pod?
A pod is the smallest deployable unit in Kubernetes: one or more containers that share networking and storage and run together on the same node.
What is the difference between a pod, a Deployment, and a Service?
A pod runs your containers. A Deployment manages a group of identical pods and handles updates and scaling. A Service gives that group a stable network address.
Is Kubernetes hard to learn?
The core ideas are manageable in a few weeks of practice, but running production clusters well, with security, networking, and upgrades, takes longer. Starting with a local cluster and the core objects keeps the learning curve reasonable.
How do I run Kubernetes locally?
Install a container runtime, kubectl, and a tool such as kind or minikube, then create a local cluster with a single command.
What is a managed Kubernetes service?
A managed service such as Amazon EKS, Azure AKS, or Google GKE runs and upgrades the control plane for you, so your team focuses on workloads instead of cluster internals.
Is Kubernetes secure by default?
Not fully. Defaults such as unencrypted Secrets and open pod-to-pod networking need hardening. Use RBAC, network policies, encryption at rest, image scanning, and the CISA/NSA and CIS guidance.
When should I not use Kubernetes?
Avoid it for small, simple applications, for teams without capacity to operate it, or when a managed platform or serverless option would meet your needs with less overhead.
Which Kubernetes certification should I start with?
KCNA is the entry-level option. CKAD suits developers, CKA suits administrators, and CKS covers security and requires CKA first.
How much does Kubernetes cost to run?
The software is free, but you pay for worker nodes, storage, networking, and, on most managed services, a control-plane fee. Setting resource requests and limits, rightsizing, and tracking spend from the start keeps costs predictable.
Conclusion
Kubernetes looks intimidating mostly because of its vocabulary. Once you see the pattern, containers packaged as images, pods grouped by Deployments, Services giving them stable addresses, and a control plane that keeps reality matching your declared state, the rest is detail you can learn as you need it. Start small on a local cluster, build safe habits early, and be honest about whether you need the platform at all.
Ready to run Kubernetes in production without the guesswork?nuwair.com Kubernetes orchestration, Infrastructure as Code, DevSecOps, and managed IT teams can design, secure, and operate your container platform on AWS or Azure. Talk to our team to plan your first cluster.