Skip to main content

Kubernetes

Pronunciation
KOO-ber-NET-eez
Updated 2 min read

Share this page

Send the link, quote the definition with a link back, or show it as a card on your own site.

https://softwaredictionary.org/terms/kubernetes

In short

Kubernetes is an open-source system that automates deploying, scaling, and managing containerized applications across a cluster of machines.

What is Kubernetes?

Kubernetes, often shortened to K8s, is a container orchestration platform. When an application runs as many containers across many servers, Kubernetes decides where each container runs, restarts containers that crash, scales them up or down with demand, and routes network traffic to them. It was originally created at Google and is now maintained by the Cloud Native Computing Foundation (CNCF).

Kubernetes is declarative: you describe the desired state in YAML files, such as 'run three copies of this web app', and Kubernetes continuously works to make reality match that description. Its key building blocks are pods (the smallest unit, one or more containers that run together), deployments (which manage copies of pods and roll out updates), and services (stable network addresses for a group of pods).

A good analogy is an orchestra conductor, which is where the word orchestration comes from. The musicians (containers) play the music, while the conductor makes sure the right number are playing, replaces anyone who stops, and keeps everything in sync. Major cloud providers offer managed Kubernetes services, so teams don't have to run the cluster's control plane themselves.

Kubernetes is often compared with Docker, but they solve different problems: Docker builds and runs individual containers, while Kubernetes manages many containers across a cluster. Kubernetes is powerful but complex, so small projects often do fine with simpler options such as Docker Compose, a platform as a service, or serverless hosting.

At a glance

A Deployment declares replicas: 3; the control plane places pods on two worker nodes, and when one pod crashes it starts a new one, while a service gives users one stable address and routes their traffic only to the three running pods.Node 1Node 2places podsstarts a new podkind: Deploymentreplicas: 3desired stateControl planekeeps 3 pods runningPodPodPodcrashedPodnewUsersServiceone stable address
You declare how many copies you want; Kubernetes keeps reality matching it, replacing pods that fail while the service keeps traffic flowing.

Key takeaways

  • Kubernetes orchestrates containers across a cluster of machines.
  • You declare the desired state in YAML, and Kubernetes keeps it that way.
  • Pods, deployments, and services are its core building blocks.
  • It handles scaling, self-healing, rolling updates, and load balancing.
  • K8s is short for Kubernetes: a K, eight letters, then an s.

Example

A Kubernetes Deployment running three copies of an appyaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: web
spec:
  replicas: 3 # keep three copies of the container running at all times
  selector:
    matchLabels: { app: web }
  template:
    metadata:
      labels: { app: web }
    spec:
      containers:
        - name: web
          image: example/web:1.0

Readers ask

What is the difference between Docker and Kubernetes?

Docker is used to build container images and run containers, typically on one machine. Kubernetes runs and manages many containers across many machines, handling scheduling, scaling, and recovery, and it can run images built with Docker.

Why is Kubernetes called K8s?

K8s is a numeronym: the 8 stands for the eight letters between the K and the s in Kubernetes. The name itself comes from the Greek word for helmsman or pilot.

Do I need Kubernetes?

Not always. Kubernetes pays off when you run many services that need automated scaling and high availability; for a single small app, a simpler hosting platform or Docker Compose is usually enough.

Often compared

See also

Sources

Spotted a mistake or something missing on this page?Suggest an edit

Read a random page
Open today's review
Switch to the dark theme
Read this page in Türkçe

More

Settings