Kubernetes

Kubernetes is an open-source platform that runs containerized applications across a cluster of machines, keeping them at the desired state by scheduling, restarting, scaling and updating them automatically.

Also known as: K8s

Related terms in this glossary

How it works

Kubernetes, often written K8s, groups machines into a cluster. A control plane stores the desired state and makes decisions. Worker nodes run the workloads. You describe what you want in declarative objects, usually YAML files, and controllers continuously work to make reality match.

  • Pods are the smallest unit: one or more containers that share a network identity.
  • Deployments and StatefulSets manage replicas and rolling updates.
  • Services give a stable address to a changing set of pods; Gateway API or Ingress routes outside traffic in.
  • ConfigMaps, Secrets and PersistentVolumes supply configuration and storage.
  • Namespaces and RBAC separate teams and control access.

Kubernetes was open-sourced by Google in 2014, and was the first project to graduate from the Cloud Native Computing Foundation (CNCF). The project ships about three minor releases a year, and each is supported for roughly 14 months, so clusters need regular upgrades. Managed offerings such as Amazon EKS, Azure AKS and Google GKE run the control plane for you.

Why it matters

Kubernetes gives teams one consistent way to deploy, scale and heal applications across clouds and data centers, with a large ecosystem of tools built on its API. The cost is complexity: networking, security, upgrades and resource tuning all need skill. For a small app, a managed container service may be simpler. Gepton's Kubernetes consulting and management service covers design, upgrades and operations.

Kubernetes in depth

What a production cluster actually contains

A cluster that only runs kubectl apply on a few Deployments is a demo. A production cluster adds a set of supporting pieces that the core project leaves to you. In most environments we work in, that set includes an ingress or Gateway API controller, cert-manager for TLS certificates, a metrics pipeline, a log shipper, an external secrets operator that pulls from a cloud secret store, a node autoscaler such as Karpenter or Cluster Autoscaler, and a policy engine for admission control.

Each workload also needs its own safety settings. These are the ones we check first in any review:

  • CPU and memory requests on every container, and memory limits, so the scheduler can place pods honestly.
  • Readiness and liveness probes that test the real dependency path, not just that the process is alive.
  • At least two replicas and a PodDisruptionBudget, so node upgrades do not take a service down.
  • NetworkPolicies that deny traffic by default and allow only what each service needs.
  • Pod Security Admission set to the restricted or baseline profile per namespace.
  • Immutable image tags or digests, never latest.

Example: shipping one API service

Example: a team runs a Python API that handles document uploads. The manifests define a Deployment with three replicas, requests sized from load tests, a Service, an HTTPRoute for the public hostname, and a Horizontal Pod Autoscaler that scales on CPU between three and ten pods. A background worker reads from a queue and is scaled by KEDA on queue depth instead of CPU. Configuration differs between staging and production through Kustomize overlays, and Argo CD syncs the Git repository to each cluster, so every change is a reviewed pull request rather than a manual command.

Upgrades and day-two operations

Because each minor version is supported for a limited window, upgrades are routine work, not a project. The control plane moves one minor version at a time, and nodes must stay within the supported version skew of the control plane. Before each upgrade, check the deprecated API guide for removed resource versions, scan manifests and Helm releases for them, and upgrade add-ons such as the ingress controller and CNI plugin to versions that support the target release. Our Kubernetes upgrade checker lists what to look at for a given version jump.

Other day-two tasks include rotating certificates and credentials, patching node images, reviewing RBAC bindings and pruning unused namespaces. Doing these through GitOps and infrastructure as code keeps every cluster reproducible.

How to judge whether Kubernetes is working for you

Useful measures are practical rather than abstract:

  • Requested versus used CPU and memory across nodes, which shows waste and guides rightsizing.
  • Pod restarts, OOMKilled events and failed scheduling attempts.
  • Version lag: how many minor versions behind the newest supported release each cluster is.
  • Lead time and failed deployments, the DORA metrics, before and after the move.

The Kubernetes cost estimator helps model what drives running cost for a planned cluster.

Common mistakes

The most frequent problems we see are clusters built by hand that nobody can recreate, missing requests that let one noisy pod starve others, every team sharing cluster-admin, and secrets committed to Git in plain base64. Another is adopting Kubernetes for a single small app where a managed container service would be simpler. Our Kubernetes and DevOps assessment reviews an existing setup against these points before any rebuild.

Questions about Kubernetes

Something else? Send us your question and an engineer replies with next steps.

Should a small team run its own Kubernetes control plane?

Usually not. Managed offerings such as EKS, AKS and GKE run and patch the control plane, which removes the hardest operational work: etcd backups, control plane upgrades and certificate management. Self-managed clusters make sense when you must run on your own hardware, in an air-gapped site or in a region without a managed service. Even then, distributions such as k3s or tools such as kubeadm reduce the effort. For a small team, the time saved is better spent on application reliability and security settings.

What is the difference between requests and limits in Kubernetes?

A request is what the scheduler reserves for a container when it places the pod on a node. A limit is the ceiling the container may use. If a container exceeds its CPU limit it is throttled; if it exceeds its memory limit it is killed with an OOMKilled status. Many teams set memory limits equal to requests for predictable behavior and leave CPU limits off or generous to avoid needless throttling. Requests should be based on measured usage, not guesses.

How many clusters should a company run?

There is no single answer, but most teams start with separate clusters for production and non-production, so experiments cannot affect customers. Further splits are driven by regulation, data residency, region, or very different workloads such as GPU training. Many small clusters increase upgrade and tooling work, while one huge shared cluster increases blast radius. Namespaces with RBAC, quotas and network policies handle team separation well inside one cluster.

Articles that mention Kubernetes

All articles

Jump to

↑↓ to move↵ to open