talira

Kata Containers

The speed of containers, the security of VMs

open sourceApache-2.0self-hostablefree

Kata Containers runs containers inside lightweight virtual machines that feel and perform like containers: each workload gets a dedicated kernel and hardware virtualization as a second layer of isolation, while it's still started through the OCI format, the Kubernetes CRI and containerd (Kata is a containerd shim v2 runtime). It supports QEMU (the hypervisor for NVIDIA GPUs and for confidential computing with Intel TDX and AMD SEV-SNP), Cloud Hypervisor, Firecracker, Dragonball (built into the Rust runtime) and StratoVirt, on x86_64, arm64, ppc64le and s390x. Since 4.0 the Rust runtime-rs is the default, and the recommended install is the kata-deploy Helm chart on a Kubernetes cluster. The OpenInfra Foundation stewards it, under Apache-2.0.

Problems it solves

  • run untrusted or multi-tenant workloads on Kubernetes with VM-level isolation instead of a shared kernel
  • a container escape shouldn't give an attacker the host kernel
  • give each pod its own kernel without changing our container images
  • run some pods in a hardware-isolated sandbox while the rest use the normal container runtime
  • run confidential containers with Intel TDX or AMD SEV-SNP memory encryption
  • pass an NVIDIA GPU through to an isolated container workload
  • use Firecracker or Cloud Hypervisor microVMs for containers in our cluster
  • sandbox customer-supplied code in containers with a VM boundary
  • VM-isolated containers on IBM Z or POWER servers

Features

  • each container or pod runs in a lightweight VM with its own kernel
  • OCI-compatible; works through the Kubernetes CRI and containerd's shim v2
  • hypervisors: QEMU, Cloud Hypervisor, Firecracker, Dragonball and StratoVirt
  • QEMU runtimes for NVIDIA GPUs and for Intel TDX and AMD SEV-SNP confidential computing
  • Rust runtime-rs, the default since 4.0; the Go runtime is deprecated
  • kata-deploy Helm chart, the recommended install on Kubernetes; release tarballs and source builds too
  • x86_64, arm64, ppc64le and s390x hosts
  • kata-runtime check tests whether a host can run Kata Containers
  • Cloud Hypervisor's mshv backend for hosts on Microsoft's hypervisor, such as some Azure instances

Limitations

  • Needs hardware virtualization: hosts must be bare metal, or VMs with nested virtualization, with KVM (or mshv on Microsoft's hypervisor)1

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what Kata Containers does.

  1. gVisor Application Kernel for Containers
  2. Firecracker Secure and fast microVMs for serverless computing
  3. runc CLI tool for spawning and running containers according to the OCI specification
  4. CRI-O Lightweight Container Runtime for Kubernetes

Compare Kata Containers with the top 3