Kubernetes
What is Kubernetes?
Kubernetes (K8s) is an open-source platform for automating the deployment, scaling, and management of containerised applications. Originally developed by Google and now maintained by the Cloud Native Computing Foundation (CNCF), Kubernetes has become the de facto standard for container orchestration.
Core concepts
Container
A container packages an application and all its dependencies (libraries, runtime environment, configuration) into an isolated unit. Containers are lightweight, portable, and start quickly – ideal for modern cloud-native architectures.
Pod
The smallest deployable unit in Kubernetes is the Pod. A Pod contains one or more closely coupled containers that share the same network namespace and storage volumes.
Node
A Node is a (physical or virtual) machine in a Kubernetes cluster on which Pods run. Every cluster has a Control Plane (previously: Master Node) that coordinates the entire cluster, and one or more Worker Nodes that run the workloads.
Namespace
Namespaces allow a cluster to be logically divided. Different teams or environments (dev, staging, prod) can be isolated from each other within the same cluster.
Key features
Automatic scheduling
Kubernetes automatically distributes Pods across available Nodes based on available resources (CPU, memory) and defined constraints (e.g. affinities, taints).
Self-healing
If a container crashes, Kubernetes restarts it automatically. If a Node fails, the affected Pods are rescheduled on healthy Nodes. Defined target states are continuously maintained.
Horizontal scaling
Applications can be scaled horizontally by creating more Pod replicas. The Horizontal Pod Autoscaler (HPA) adjusts the number of replicas automatically based on metrics such as CPU utilisation.
Rolling updates and rollbacks
New application versions are deployed incrementally (rolling update) so that no downtime occurs. If problems arise, Kubernetes can automatically roll back to the previous version.
Service discovery and load balancing
Kubernetes provides internal DNS and load balancing, allowing services to find each other without hardcoded IP addresses.
Kubernetes in the enterprise
Kubernetes is the backbone of modern cloud-native architectures. Companies use Kubernetes to run microservices-based applications, CI/CD pipelines, and data platforms. Major cloud providers offer managed Kubernetes services (EKS, AKS, GKE) that handle the complexity of cluster operations.
