Skip to content

Kubernetes

Also called: K8s

Published:

What does Kubernetes do?

The official documentation describes Kubernetes as a portable, extensible platform for managing containerised workloads and services, built for both declarative configuration and automation [1]. In practice it takes on a handful of jobs. It exposes a container through a DNS name or IP address and spreads traffic across instances. It rolls out and rolls back changes by moving the actual state toward the desired state at a controlled rate. It places containers on nodes according to the CPU and memory they declare. And it restarts or replaces failed containers, holding back traffic until they are ready [1].

The name is Greek for helmsman or pilot, and K8s counts the eight letters between the K and the s. Google open-sourced the project in 2014 [1].

What is a Pod, and how do applications scale?

A Pod is the smallest deployable unit you can create and manage in Kubernetes: one or more containers sharing storage and network resources [2]. Each Pod runs a single instance of an application. To scale horizontally you run more Pods, one per instance, and a workload resource such as a Deployment usually manages those replicas as a group [2]. Declare a web service with three replicas, for example, and if one Pod dies Kubernetes replaces it and only sends traffic to replicas that are ready [1] [2].

What is Kubernetes not?

It is not a traditional, all-inclusive PaaS. It works at the container level rather than the hardware level. It does not build or deploy your source code, does not ship application services such as databases or message buses as built-in features, and leaves logging, monitoring and alerting optional and pluggable [1].

Frequently asked questions

What does K8s stand for?

It is shorthand for Kubernetes: the 8 replaces the eight letters between the K and the s.

Does Kubernetes replace Docker?

No. A container runtime runs individual containers; Kubernetes decides where many containers run, how many copies exist and what happens when they fail.

Sources

  1. Overview — Kubernetes Documentation
  2. Pods — Kubernetes Documentation