Lightweight Container Runtime for Kubernetes
open sourceApache-2.0self-hostablefree
CRI-O is an implementation of the Kubernetes Container Runtime Interface that lets the kubelet run pods with any OCI-conformant runtime, such as runc or Kata Containers, as a lightweight alternative to Docker on cluster nodes. Its scope is only what the CRI needs: pulling and verifying images from any compliant registry, managing layers and overlay filesystems, running containers and their monitoring, logging and resource isolation; building, signing and pushing images are out of scope. Each CRI-O minor version follows a Kubernetes minor release, and it's packaged as deb and rpm packages from the openSUSE Build Service or as static bundles for amd64, arm64, ppc64le and s390x. It's a CNCF Graduated project under Apache-2.0, with maintainers from Red Hat, Intel, SUSE, IBM and others.
Problems it solves
- a container runtime on my cluster nodes that does only what the kubelet needs and nothing else
- replace Docker as the runtime under my cluster now that dockershim is gone
- run pods with Kata Containers or another OCI runtime for stronger isolation
- a node runtime whose versions line up one to one with my cluster's minor releases
- install a CRI runtime from signed deb or rpm packages before running kubeadm
- run cluster nodes on arm64, ppc64le or s390x hardware with a supported container runtime
- verify the runtime binaries I deploy with sigstore signatures, SBOMs and SLSA provenance
Features
- implements the Kubernetes Container Runtime Interface
- any OCI-conformant runtime, such as runc or Kata Containers
- pulls from any compliant registry, with image trust and verification
- image layer and overlay filesystem management, monitoring, logging and resource isolation
- minor versions follow Kubernetes releases; n-2 version skew policy; bug fixes backported to release branches
- deb and rpm packages from the openSUSE Build Service (isv:cri-o), plus Fedora packages
- static binary bundles for amd64, arm64, ppc64le and s390x with SPDX SBOMs, OpenVEX and SLSA provenance
- works with kubeadm and Minikube; openSUSE Kubic uses it by default
Limitations
- Doesn't build, sign or push images: CRI-O leaves these out of scope, and its included CLI is only for testing1
Alternatives
The same job
These do what CRI-O does.
- containerd An industry-standard container runtime with an emphasis on simplicity, robustness and portability
- Kata Containers The speed of containers, the security of VMs
- gVisor Application Kernel for Containers
- runc CLI tool for spawning and running containers according to the OCI specification
