Search⌘ K

How the CRI Works

Explore how Kubernetes kubelet uses the Container Runtime Interface (CRI) to create, run, and manage containers within Pods. Understand the role of CRI in enabling flexible, OCI-compliant container runtime support and how it decouples kubelet from specific runtime implementations for stable Kubernetes operations.

Overview

In Kubernetes, the smallest deployable and schedulable unit is a Pod. One or more containers are grouped into one Pod. Such a Pod design can well support multiple cooperating processes for a cohesive unit of Service. Each process runs in a separate container. Multiple containers serve as a standalone Service or application.

But how does kubelet turn a Pod to multiple running containers?

The role of kubelet

The kubelet agent watches the kube-apiserver as new Pods get scheduled to the current node. It processes the specification of a Pod and ensures all the specified containers for the Pod are up and running as declared.

To create a container, kubelet ...