A Tuesday launch lands, the queue backs up, and your app starts returning 503s while every dashboard stays green. Kubernetes is an open source system for automating the deployment, scaling, and management of containerized applications [1][2]. The control plane's components make global decisions about the cluster, such as scheduling, and detect and respond to cluster events, for example starting up a new pod when a Deployment's replicas field is unsatisfied [4][7]. This guide explains how that loop works, where it breaks, and when you should run something simpler instead.
In short
- Deploying containers without explicitly defining how Kubernetes should check their health or readiness tends to happen because Kubernetes will consider a container "running" as long as the process inside hasn't exited Kubernetes can be both powerful and frustrating at times [5].
- Kubernetes is an open source container orchestration engine that automates deployment, scaling and management of containerized applications [1].
- Kubernetes helps you make sure containerized applications run where and when you want, and helps them find the resources and tools they need [3].
- Apps still fall over when resource requests and limits are missing: pods get OOMKilled and the scheduler has no real numbers to place them [5].
- The control plane runs on the API server,
etcdand the scheduler, whilekubeleton each node keeps the containers running and healthy [4]. - Managed platforms such as Fargate and Cloud Run, or infrastructure-from-code tools, are the better choice for a small team with a few backend services [7].
- Kubernetes requires dedicated expertise and adds operational overhead for smaller teams [3][7].
At a glance
| Fact | Detail | Source |
|---|---|---|
| What Kubernetes is | An open source container orchestration engine for automating deployment, scaling and management | [1] |
| Who hosts the project | The Cloud Native Computing Foundation | [1] |
| Cluster shape | A control plane plus worker nodes; every cluster needs at least one worker node to run Pods | [4] |
| API front end | kube-apiserver is the front end for the control plane and scales horizontally |
[4] |
| Backing store | A highly available key-value store holds all cluster data, and it needs a backup plan | [4] |
| Node agent | kubelet ensures the containers in its PodSpecs are running and healthy |
[4] |
| Container runtimes | containerd, CRI-O and any runtime that implements the CRI |
[4] |
| Scheduling | kube-scheduler is the default scheduler and can be replaced |
[4] |
| Typical failure | Unset resource requests and limits lead to OOMKilled pods | [5] |
| Main alternative | Managed containers such as Fargate and Cloud Run, or infrastructure from code | [7] |
What Kubernetes orchestration actually does when traffic jumps
Kubernetes orchestration turns a declared desired state into a running set of containers, then keeps repairing the difference without being told twice [6][7]. The mental model matters more than any command. You write down how many replicas of a service should run, what resources they need and how they should be exposed [7]. Kubernetes continuously compares the actual state of the cluster to that desired state and takes action to close any gap [7]. If a pod crashes, Kubernetes reschedules it; if you update a deployment, it rolls out new pods incrementally [7].
That is the whole trick behind surviving a traffic jump. The app is not one process on one machine anymore. A Kubernetes cluster consists of a control plane plus a set of worker nodes that host the Pods making up the application workload, and the control plane manages the worker nodes and the Pods in the cluster [4][7].
The pieces that have to be healthy for self-healing to work
A Kubernetes cluster consists of a control plane plus worker machines, called nodes, that run containerized applications, and every cluster needs at least one worker node to run Pods [4]. The control plane is the decision-maker. The API server is the front end for the control plane, and kube-apiserver is designed to scale horizontally by running several instances behind a load balancer [4]. A consistent and highly available key-value store holds all cluster data, and if the cluster uses etcd, you need a backup plan for that data [4]. kube-scheduler is the default scheduler that decides which node runs which Pod [4].
On each node, kubelet takes a set of PodSpecs and ensures the containers described in them are running and healthy, and it does not manage containers that were not created by Kubernetes [4]. A container runtime such as containerd, CRI-O or any implementation of the Container Runtime Interface runs the processes [4]. kube-proxy implements part of the Service concept on every node [4]. Cluster DNS is the one addon nearly every cluster needs, because many examples and services rely on it, and containers started by Kubernetes automatically include that DNS server in their searches [4].
If any of these pieces is missing or unhealthy, self-healing stops being automatic. Every cluster needs at least one worker node to run Pods, and each node typically runs a network proxy component so that the Service API and associated behaviors are available on your cluster network. A control plane without a backed-up store loses the whole desired state [4]. Self-healing depends on the infrastructure underneath it, not just on your manifests.
The loop you rely on, in the reader's terms
The loop is short. You declare what you want, Kubernetes figures out the rest [6]. The desired state lives in YAML manifests covering replica counts, resource needs and traffic exposure [7]. The control plane continuously monitors the cluster and enforces that desired state [6]. When reality drifts, Kubernetes acts.
Kubernetes clusters should run multiple nodes to provide fault tolerance and high availability, and the control plane detects and responds to cluster events such as starting a new pod when a Deployment's replicas field is unsatisfied [4][5]. It is also why a badly written manifest is worse than no manifest. The source describes common Kubernetes pitfalls, such as skipping resource requests and limits, underestimating liveness and readiness probes, and relying solely on container logs [5].
Why "it restarted but still fell over" happens
Kubernetes restarts the container but does not fix the reason it died, unless the manifest and probes describe that reason. The official pitfall list is blunt about the most common case: when resource requests and limits are not set, pods get OOMKilled and the scheduler has no reserved CPU or memory to place them correctly [5]. Resource requests tell the scheduler how much CPU and memory to reserve for each pod, and limits cap what one pod can consume so it cannot starve the others [5].
An app that restarts every few minutes looks healthy in a pod count dashboard and still serves errors. The restart count is the signal, and it is easy to ignore.
Probes that lie
Liveness, readiness and startup probes are the mechanisms Kubernetes uses to monitor container health and availability [5]. If a readiness probe passes while the app cannot reach its database, traffic keeps flowing to a broken pod. If a liveness probe fails too eagerly during a slow start, Kubernetes kills a pod that was about to work. The probes are your definition of healthy, and Kubernetes believes them completely.
The same manifest everywhere
Deploying identical manifests with the same settings across development, staging and production is a named pitfall [5]. Teams do it for consistency and reuse, but traffic patterns, resource availability, scaling needs and access control differ between environments, so a configuration tuned for one can cause instability or poor performance in another [5]. The fix is per-environment values for the things that differ, not one file copied three times.
Leftovers that keep routing traffic
Kubernetes automatically removes certain resources through built-in garbage collection, including objects without owner references and terminated pods, and provides built-in ownership tracking via OwnerReferences (which enable automatic garbage collection when owners are deleted) as well as expiration tracking via the TTL-after-finished controller (which limits Job lifetimes). [5]. Unused Deployments, Services, ConfigMaps and PersistentVolumeClaims accumulate, consume cluster resources, raise cloud costs and confuse operations, especially when stale Services or LoadBalancers keep routing traffic [5]. A forgotten Service can point at old pods and quietly split your traffic.
Networking built before the basics
Teams add service meshes, custom CNI plugins or multi-cluster communication before they understand native networking, then struggle to debug it because overlays add abstractions and failure points [5]. Learn Pod-to-Pod communication, ClusterIP Services, DNS resolution and basic ingress first, then add the overlay when a specific problem demands it.
Insecure defaults
Running containers as root, using the latest image tag, disabling security contexts and granting cluster-admin broadly all persist because Kubernetes does not enforce strict security defaults out of the box [5]. Use RBAC to define roles and permissions; for policy beyond RBAC, OPA Gatekeeper, Kyverno or webhooks with policy languages such as CEL or Cedar are options [5]. Security posture is something you configure, not something the platform gives you.
Fixing a jump that takes the app down
Fixing a traffic jump is a sequence of concrete changes, and each one is checkable in the cluster. Start with resource requests and limits on every container, because the scheduler needs them and missing values cause OOMKilled pods [5]. Then set the three probes with different purposes: startup for slow boots, readiness for traffic admission, liveness for deadlocks [5].
- Set CPU and memory requests and limits on every container in the workload [5].
- Add a startup probe for slow initialization, a readiness probe for traffic admission and a liveness probe for stuck processes [5].
- Split environment-specific values out of the shared manifest, so staging does not inherit production's replica count or limits [5].
- Give the workload a HorizontalPodAutoscaler so replica count grows with load instead of staying fixed.
- Give the cluster a node autoscaler so new pods actually have a node to land on; Karpenter is one option for provisioning nodes to match pending pods.
- Audit unused Deployments, Services and LoadBalancers, then delete them [5].
- Pin image tags instead of
latest, run containers as non-root and scope RBAC roles [5].
Step four and five are where most "it restarted but still fell over" stories end. A pod that cannot be scheduled because no node has room is not a healing event; it is a capacity problem, and the fix is a node autoscaler, not more replicas.
Options compared: what you run when self-healing is the goal
The orchestration choice is not binary, and the honest comparison puts Kubernetes next to managed containers and infrastructure-from-code tools. Kubernetes is the dominant container orchestration platform, designed at Google, open-sourced in 2014 and maintained by the CNCF [7]. Earlier systems laid groundwork, but single-host tools like Docker Compose work for development and do not address production-scale orchestration, while Docker Swarm and Mesos lacked the extensibility, ecosystem and operational maturity of Kubernetes [6]. Today Kubernetes is the default orchestration layer for cloud-native applications across data centers, public clouds and edge environments [6].
Managed container platforms such as AWS Fargate and Google Cloud Run remove cluster and node management: you push a container image, define scaling rules and the platform handles placement and infrastructure [7]. You lose some of Kubernetes' flexibility, and you also lose the YAML [7]. Infrastructure-from-code platforms work differently: Encore, an open-source backend framework for TypeScript and Go, parses application code, infers the needed infrastructure and provisions it in your own AWS or GCP account, so you do not write Kubernetes manifests, Terraform or Dockerfiles [7].
| Option | What it handles for you | What you still own | Best fit |
|---|---|---|---|
| Kubernetes, self-managed | Kubernetes clusters use a control plane to make scheduling decisions and worker nodes to run workloads, with Pods as the smallest deployable unit and a declarative model that continuously reconciles actual state with desired state [4][7] | A Kubernetes cluster consists of a control plane plus a set of worker nodes, and addons use Kubernetes resources to implement cluster features [4][5] | Container orchestration platforms like Kubernetes handle scheduling (placement), networking, and multi-cloud portability [7] |
| Managed Kubernetes (EKS, GKE, AKS) | Control plane availability and some upgrades | Configuration, monitoring, upgrade lifecycle, cost of system pods [7] | Teams that want Kubernetes semantics without running the control plane |
| Managed containers (Fargate, Cloud Run) | Nodes, placement, scaling infrastructure [7] | Application config and scaling rules | Small teams shipping a few backend services [7] |
| Infrastructure from code (Encore) | Infrastructure derivation and provisioning in your account [7] | Application code and cloud account governance | Teams optimizing for feature delivery over infrastructure control [7] |
The trade is control against surface area. Kubernetes earns its complexity in multi-cloud and hybrid deployments, where it provides a consistent abstraction layer across AWS, GCP, Azure or your own hardware, and for teams that need workload portability across environments [7]. If none of those apply, the cost side of the ledger is heavy.
How to choose without guessing
Choosing orchestration comes down to three questions: how many services, how much control you need, and whether anyone on the team owns infrastructure. For a team of 3 to 15 engineers shipping a product with a few backend services, the time spent managing Kubernetes infrastructure is time not spent building features, and the orchestration layer becomes the thing that needs the most care rather than the application itself [7]. That is the clearest published statement of the trade-off, and it matches what most teams discover after a year of running a cluster.
Kubernetes requires dedicated expertise: someone who understands YAML manifests, Helm charts, networking policies, RBAC and debugging across pods, services and ingress layers [7]. Managed offerings reduce the operational burden but do not eliminate it, because you still own configuration, monitoring and the upgrade lifecycle [7]. The compute overhead of running a cluster, including the control plane, system pods and monitoring agents, is non-trivial for smaller workloads [7].
Choose Kubernetes when you need fine-grained control over container placement, custom networking topologies or multi-cloud portability [7]. Choose managed containers or infrastructure from code when you need to ship backend services reliably and the team would rather spend time on application logic than infrastructure management [7]. The alternatives have matured enough to be the better choice in that second case [7].
The question of whether the platform is still the right default in 2026 has its own long answer in whether Kubernetes is still relevant in 2026. For the narrower question of which model wins for agent-based systems, the AWS vs Kubernetes comparison covers the trade-offs directly.
When this is the wrong choice
Kubernetes orchestration is the wrong choice when the app is small, the team is small, or the portability it buys is not needed. Each case below has a cheaper alternative that still keeps the app up.
- A few services and a small team. For a team of 3 to 15 engineers shipping a product with a few backend services, managing the cluster takes time from building features, and the orchestration layer becomes the thing that needs the most care [7]. Use managed containers such as Fargate or Cloud Run instead [7].
- No one owns infrastructure. Kubernetes requires dedicated expertise across manifests, networking policies, RBAC and cross-layer debugging, and managed offerings do not remove the configuration, monitoring and upgrade lifecycle you still own [7]. Use a platform where infrastructure follows from code, such as Encore, or a managed container service [7].
- The workload is small enough that cluster overhead dominates. The compute overhead of the control plane, system pods and monitoring agents is non-trivial for smaller workloads [7]. Run the containers on a managed platform and skip the cluster.
- Portability is not a requirement. Kubernetes earns its complexity in multi-cloud and hybrid deployments and for portability across environments [7]. If you run in one cloud and expect to stay there, that benefit does not apply to you.
One more case is not about size. If your team cannot yet operate native networking, address the networking basics before adding a mesh or custom CNI, because overlays make troubleshooting harder [5]. Adding Kubernetes complexity on top of an unowned network layer compounds the problem.
Running it without waste
Running Kubernetes without waste means treating node capacity and pod requests as one system. Kubernetes schedules pods based on their resource requests, so without requests the scheduler might place too many pods on a single node, leading to resource contention and performance bottlenecks [5]. Limits that are far below real usage cause OOMKilled pods and restarts [5]. Both directions cost money or uptime.
Capacity that follows the load
The cluster needs a node autoscaler so pending pods trigger new machines and idle machines go away. Karpenter provisions nodes to match pending pod requirements, which is the pattern most teams land on for cost control. Pair it with a HorizontalPodAutoscaler per service so replica count follows load, and the app stops depending on a human noticing a traffic jump.
Leftovers that quietly bill you
Unused Deployments, Services, ConfigMaps and PersistentVolumeClaims consume cluster resources and raise cloud costs, and Kubernetes will not clean them up on its own [5]. Stale Services and LoadBalancers are the expensive ones because they keep routing traffic and keep billing. A monthly sweep for objects with no traffic and no owner pays for itself. The wider set of cost levers is covered in Kubernetes cost optimization best practices 2026.
Rollouts that keep the app up
Containerization lets software be released and updated without downtime, and Kubernetes helps those containerized applications run where and when you want [3]. Incremental rollout of new pods is built into the deployment model [7]. The part you own is the rollback plan and the readiness gate, because a rollout that ships a broken readiness probe takes every replica down at once.
What drives the bill
The bill comes from four places: node capacity, the control plane, system overhead and leftovers. Node capacity is the biggest lever and the easiest to tune, since it follows pod requests and the node autoscaler. Managed offerings like EKS, GKE, and AKS reduce the operational burden of Kubernetes but don't eliminate it [7]. Leftovers are pure waste, and they accumulate because Kubernetes does not remove resources unless told to [5]. The fix is not a single purchase decision; it is a monthly review of what runs, what it requests and what it serves.
Monitoring agents are part of the overhead line, not a separate concern [7]. A cluster with generous requests, a monitoring stack and no autoscaler can spend most of its capacity on things that are not serving traffic. Before adding another tool to the cluster, check whether the capacity it needs is already the reason the cluster is expensive.
How to check in your own system
Four signs would tell you that your Kubernetes orchestration is not doing the job, and each has a cheap check you can run this week.
- Skipping resource requests and limits can lead to problems such as resource starvation and resource hoarding [5].
- Pods stuck in Pending during a jump. If replicas cannot be scheduled, the cluster has no room; check pending pods against node capacity and confirm the node autoscaler is reacting.
- Use a readiness probe to ensure traffic doesn’t reach your app until it’s warmed up [5].
- Cost rising while traffic is flat. List Deployments, Services, ConfigMaps and PersistentVolumeClaims with no recent activity; these are the leftovers that keep billing [5].
The cheapest check this week is the restart count by pod. Start with modest resource requests and limits, monitor real-world usage, and refine your values [5]. Pods can be killed by the Out-Of-Memory (OOM) killer when resource limits are not set and memory runs low [5]. For the wider decision of whether this platform is still the right one at all, start from the Kubernetes topic map.
Key terms
Kubernetes: An open source container orchestration engine that automates deployment, scaling and management of containerized applications [1].
Cluster: A control plane plus a set of worker nodes that run containerized applications, with at least one worker node required to run Pods [4].
Pod: The smallest deployable unit, wrapping one or more containers that share networking and storage [7].
Control plane: The set of components that makes scheduling decisions and continuously enforces the desired state [6][7].
kube-apiserver: The front end for the control plane that exposes the Kubernetes API and scales horizontally [4].
kubelet: The node agent that ensures the containers in its PodSpecs are running and healthy [4].
The control plane component that watches for newly created Pods with no assigned node and selects a node for them to run on [4].
Resource requests: The CPU and memory the scheduler reserves for a pod, which determine where it can be placed [5].
Desired state: The declared configuration of replicas, resources and exposure that Kubernetes continuously compares with reality [7].
Readiness probe: A health check that decides whether a container should receive traffic [5].
Common questions
What is Kubernetes orchestration in one sentence?
Kubernetes orchestration is the automated control loop that starts, moves, restarts and scales the containers of an application across a cluster so the declared desired state matches reality. It replaces manual container placement and restart with standardized, declarative behavior [6]. Kubernetes is an open source container orchestration engine for automating deployment, scaling and management of containerized applications [1].
Does Kubernetes restart my app when it crashes?
Yes, Kubernetes restarts a crashed container and reschedules pods when a node fails, because it continuously compares actual state with the declared desired state and acts on any gap [7]. If a container crashes, Kubernetes restarts it [6]. Defining liveness, readiness, and startup probes for containers helps Kubernetes monitor their health and availability [5].
Why does my app still go down with Kubernetes?
Kubernetes only enforces what you declare, so missing resource limits, mismatched probes and environment-identical manifests cause outages that look like platform failures [5]. Unset requests and limits lead to OOMKilled pods, and the scheduler cannot reserve resources it was never told about [5]. The platform is not psychic; it will not do the right thing if you do not tell it what you need [5].
Do I need Kubernetes for a few services?
Usually no. For a team of 3 to 15 engineers shipping a product with a few backend services, the time spent managing Kubernetes infrastructure is time not spent building features, and managed containers such as Fargate or Cloud Run remove cluster management [7]. Choose Kubernetes when you need fine-grained control over container placement, custom networking or multi-cloud portability [7].
How does Kubernetes keep an app available during a traffic jump?
Kubernetes keeps the app available by running multiple replicas as Pods across worker nodes, restarting failed containers and rolling out changes incrementally [7]. A pod that crashes is rescheduled, so a single failure does not take the service down [7]. Availability during a real jump also needs a node autoscaler to add capacity and a HorizontalPodAutoscaler to add replicas.
What is the difference between Kubernetes and Docker Compose?
Docker Compose runs containers on a single host and works well for development, but it does not address production-scale orchestration [6]. Kubernetes groups containers into logical units and manages them across a cluster of nodes with scheduling, scaling and self-healing [2][4]. The two solve different problems: Compose packages a local setup, Kubernetes operates a production fleet.
What does a control plane do in Kubernetes orchestration?
The control plane continuously monitors the cluster and enforces the desired state through the API server, the scheduler and the backing store [4][6]. kube-apiserver is its front end and scales horizontally, while kube-scheduler assigns Pods to nodes [4]. The store holds all cluster data, so it needs a backup plan [4].
How much expertise does Kubernetes require?
Kubernetes requires dedicated expertise in YAML manifests, Helm charts, networking policies, RBAC and debugging across pods, services and ingress layers [7]. Managed offerings reduce operational burden but leave configuration, monitoring and the upgrade lifecycle with you [7]. If the team does not have that expertise, a managed container platform may be a simpler alternative to Kubernetes [7].
References
- Kubernetes Documentation
- Kubernetes - Production-Grade Container Orchestration
- Learn Kubernetes Basics
- Cluster Architecture | Kubernetes
- 7 Common Kubernetes Pitfalls (and How I Learned to Avoid Them)
- What is Kubernetes Orchestration? - Mirantis
- What Is Kubernetes Orchestration? How It Works - Encore
