All guides
Home Glossary Kubernetes
Term

Kubernetes

An open-source platform for automating deployment, scaling, and management of containerized applications.

Kubernetes (often abbreviated as K8s) is an open-source orchestration platform for automating the deployment, scaling, and management of containerized applications. It groups physical or virtual machines into a unified cluster, abstracting away the underlying hardware so teams can declare the desired state of their workloads using YAML or JSON manifests rather than managing individual servers.

How it works

A Kubernetes cluster is divided into a control plane and one or more worker nodes. The control plane manages cluster state through a continuous reconciliation loop that compares the current state of workloads against your declared configuration and resolves any drift.

  • kube-apiserver: Exposes the Kubernetes REST API and acts as the central entry point for all administrative commands and internal component communication.
  • etcd: A consistent, distributed key-value store that holds all cluster configuration data and state.
  • kube-scheduler: Watches for newly created pods with no assigned node and selects the best worker node based on resource requirements and affinity rules.
  • kubelet: An agent running on every worker node that ensures containers inside assigned pods are running and healthy.

Workloads run inside pods, the smallest deployable units in Kubernetes, which wrap one or more tightly coupled containers. Networking and traffic routing are handled through Service objects for stable internal discovery and Ingress controllers for external HTTP/HTTPS routing. If a container crashes or a node drops offline, Kubernetes automatically restarts or reschedules the affected pods. According to Cloud Native Computing Foundation (CNCF) surveys, over 90% of organizations running containers in production rely on Kubernetes.

Example

Instead of manually starting containers on specific hosts, you apply a declarative manifest defining a Deployment. The configuration below instructs Kubernetes to maintain three identical replicas of an Nginx web server across the cluster:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: web-frontend
spec:
  replicas: 3
  selector:
    matchLabels:
      app: web
  template:
    metadata:
      labels:
        app: web
    spec:
      containers:
      - name: nginx
        image: nginx:stable
        ports:
        - containerPort: 80

You apply this configuration using kubectl apply -f deployment.yaml. If you later update replicas to 5 or change the container image tag, Kubernetes performs a rolling update without dropping active traffic.

What matters when choosing a server or hosting

Running Kubernetes reliably depends heavily on infrastructure architecture and operational capacity:

  • Control plane management: Self-hosting the control plane requires managing etcd quorum, backups, and version upgrades yourself. Many teams avoid this overhead by reviewing a managed Kubernetes comparison to evaluate provider-hosted control planes.
  • Node sizing and overhead: System daemons, container runtimes, and monitoring agents consume CPU and RAM on every node. Small virtual machines lose a higher percentage of capacity to system overhead than medium-sized dedicated or cloud instances.
  • Storage and network speed: etcd is highly sensitive to disk write latency and requires fast NVMe or SSD storage. Low-latency private networking between nodes is equally critical for overlay networks like Cilium or Calico.
  • Self-hosted cost vs. simplicity: If you have strong Linux operations skills and want predictable infrastructure bills, deploying Kubernetes on VPS instances using lightweight distributions like k3s can reduce recurring cloud fees.

Common mistakes

  • Omitting CPU and memory limits: Leaving pods without resource requests and limits allows a single memory leak to trigger out-of-memory kills across neighboring workloads on the same node.
  • Using Kubernetes for simple single-server apps: Adopting K8s for a monolithic app with low traffic introduces networking, YAML, and upgrade complexity without delivering practical resilience benefits.
  • Storing stateful data without persistent volumes: Container filesystems are ephemeral; running databases without properly configured PersistentVolumeClaim objects results in permanent data loss when pods restart.

FAQ

Is Kubernetes a replacement for Docker?

No. Docker builds and runs individual containers, whereas Kubernetes orchestrates containers across multiple machines. Kubernetes uses container runtimes like containerd or CRI-O under the hood to execute the container images you build.

When should a team avoid Kubernetes?

Small teams deploying a few services rarely need full Kubernetes orchestration. Simpler alternatives like Docker Compose or HashiCorp Nomad offer lower operational overhead, as detailed in our Nomad vs Kubernetes analysis.

What is the difference between a Pod and a Deployment?

A pod is a single running instance of your application containers, which is disposable and not recreated automatically if deleted. A Deployment is a higher-level controller that manages a set of identical pods, handling scaling, self-healing, and zero-downtime rollouts.

All glossary terms

Glossary

Related terms

Full glossary

New guides every week.

A digest of the best pieces on servers, VPN and self-hosted software. No ads, no spam.

1 email a weekOne-click unsubscribeRU · EN
Only slipjar.app articles, nothing else.