Production-Grade Container Orchestration
open sourceApache-2.0self-hostablefree
Kubernetes (K8s) is an open source system for automating the deployment, scaling and management of containerized applications across a cluster of machines. You declare the state you want (Deployments, Services, volumes, jobs) through its API, usually with the kubectl CLI, and a set of independent controllers keeps the cluster at that state: scheduling containers onto nodes by their CPU and memory needs, restarting or replacing failed ones and rolling out new versions gradually. Nodes run containers through a CRI runtime such as containerd, and the API is extended with custom resources, CNI network plugins and CSI storage drivers. Google open sourced it in 2014; it is a graduated project of the Cloud Native Computing Foundation under Apache-2.0, and distributions such as K3s and k0s package it, while Helm and Kustomize manage what runs on it.
Ways to install
Package managers
Problems it solves
- keep my containers running across a fleet of servers and restart them automatically when one crashes
- my app has outgrown a single Docker host and I need to run its containers across many machines
- place containers on whichever server has enough free CPU and memory instead of picking hosts by hand
- roll out a new version of my web service a few replicas at a time and roll back if it breaks
- give a group of containers one stable DNS name and spread requests between them
- route traffic for several domains and URL paths to different backend services in one cluster
- send 10% of requests to a new release of a service before switching everyone over
- expose a service to the internet through my cloud provider's load balancer with a public IP
- keep database passwords and API keys out of my container images and inject them when the app starts
- change an app's configuration file without rebuilding and redeploying its image
- add more web workers automatically when CPU climbs and remove them when traffic falls off
- give a running container more memory without restarting it
- attach a persistent disk to a database container that follows it when it moves to another server
- create cloud block storage volumes on demand whenever an app asks for storage
- use any storage vendor's volumes through one standard driver interface
- take point-in-time snapshots of application volumes and restore them
- run a replicated database where each replica keeps a stable hostname and its own volume
- run a log shipper or monitoring agent on every machine in the cluster, including new ones
- run a batch processing task to completion with retries and several workers in parallel
- schedule a nightly cleanup or report task on my container platform like a crontab
- give each team its own space on a shared cluster with caps on how much CPU and memory it can use
- set default CPU and memory limits for containers that don't declare any
- restrict which engineers can read secrets or delete workloads in production
- let engineers authenticate to the cluster API with our company's OIDC identity provider
- keep a record of every change made to my cluster and who made it, for an audit
- encrypt secrets at rest in my orchestrator's datastore
- stop one app's pods from opening network connections to another app's database
- stop workloads from running privileged or as root on shared container hosts
- describe my whole application declaratively in YAML and have the platform converge to it
- run the same container platform on premises, on bare metal and in several public clouds without lock-in
- set up a production cluster on my own Linux machines with a standard bootstrap tool
- read logs, open a shell in a container and port-forward to a service from my terminal
- add my own resource types to the cluster API and write a controller that manages them
- drain a server for maintenance so its workloads move to other machines first
- keep a minimum number of replicas running while nodes are upgraded or drained
- send no traffic to a container until it reports it is ready, and restart it if it hangs
- spread replicas across availability zones so one zone outage doesn't take my app down
- keep GPU machines reserved for the workloads that actually need GPUs
- evict low-priority workloads first so critical services keep running when a cluster is full
- run Windows containers and Linux containers side by side in one cluster
- give my pods and services both IPv4 and IPv6 addresses
Features
- Deployments with automated rolling updates and rollbacks
- Services with cluster DNS names and load balancing, including cloud load balancers
- Gateway API (GatewayClass, Gateway, HTTPRoute, GRPCRoute) and the frozen Ingress API for HTTP routing
- self-healing: restarts, replaces and kills failing containers; liveness, readiness and startup probes
- automatic bin packing of containers onto nodes by CPU and memory requests
- ConfigMaps and Secrets mounted as files or environment variables, with optional encryption at rest
- HorizontalPodAutoscaler built in; in-place pod resize stable since v1.35
- PersistentVolumes, PersistentVolumeClaims, StorageClasses with dynamic provisioning, CSI drivers and volume snapshots
- StatefulSets, DaemonSets, Jobs and CronJobs
- namespaces with ResourceQuotas and LimitRanges
View 13 more
- role-based access control (RBAC) and service accounts
- authentication with X.509 client certificates, OIDC tokens and multiple JWT issuers via AuthenticationConfiguration
- NetworkPolicies, Pod Security Admission and audit logging
- scheduling controls: node affinity, taints and tolerations, topology spread constraints, priority and preemption
- PodDisruptionBudgets and safe node draining
- Dynamic Resource Allocation for GPUs and other devices
- custom resources (CRDs), aggregated APIs and the operator pattern
- IPv4/IPv6 dual-stack networking
- Windows worker nodes (Windows Server 2022 and 2025) alongside a Linux control plane
- kubectl CLI with plugins, and kubeadm for bootstrapping clusters
- container runtimes through the CRI: containerd, CRI-O, Docker Engine and Mirantis Container Runtime
- official client libraries for C, C#, Go, Haskell, Java, JavaScript, Perl, Python and Ruby
- about one year of patch support for each of the three most recent minor releases
Limitations
- Doesn't build container images or deploy from source code: CI/CD is left to other tools2
- Doesn't include databases, message queues, caches or cluster storage like Ceph as built-in services: they run on it as separate workloads2
- Doesn't come with an ingress controller: you choose one and set it up before Ingress resources route any traffic3
- Doesn't run the control plane on Windows: Windows Server machines can only join as worker nodes4
- Doesn't encrypt Secrets at rest by default: they're stored unencrypted in etcd until you configure encryption56
- Doesn't manage user accounts or provide a login page: people are authenticated by certificates or an outside identity provider7
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Takes plugins | plan not known |
| Has official SDKs | plan not known |
| Has single sign-on | plan not known |
Alternatives
The same job
These do what Kubernetes does.
