Skip to content

CRI conformance

3 min read · Intermediate


Edera is tested against the Kubernetes Container Runtime Interface (CRI) conformance suite, and every change to the runtime is checked against it automatically. This means the kubelet, crictl, and any other CRI client can drive Edera workloads the same way they drive any other conforming runtime.

Edera’s containerd shim passes all critest specs, except for a small set of host-sharing features that don’t apply inside an Edera zone. Edera also supports user namespaces inside zones.

Running host-level agents? Some CNI agents, node exporters, and CSI node plugins depend on features that are unsupported by design. See Running workloads that need host access.

What is the CRI?

The CRI is the plugin interface the kubelet uses to talk to container runtimes. Because of it, a cluster can use different runtimes without recompiling any Kubernetes components. Every node needs a working CRI runtime so the kubelet can launch pods and their containers.

What conformance means

A runtime conforms to the CRI when its behavior, as seen through the CRI API, matches what the specification and Kubernetes expect. For example:

  • Containers are created and deleted when requested
  • Status is reported correctly
  • Mounts behave as requested
  • Termination is reported the way the kubelet expects

How Edera validates conformance

Edera validates conformance with critest, the CRI validation suite from the Kubernetes cri-tools project. critest has been GA since cri-tools v1.11.0. It tests a CRI server directly, so it doesn’t need a full Kubernetes cluster or end-to-end tests.

The process is fully automated in CI:

  1. critest runs automatically against Edera on every runtime change
  2. Each failure is analyzed
  3. The failure is either fixed in the runtime or traced to the test environment
Conformance applies to behavior, not internals. Edera runs each workload in its own isolated zone, so its internals differ from those of runc-based runtimes. Edera’s compatibility guarantee covers the capabilities exposed through the CRI.

Conformance caveats

Edera passes the CRI conformance suite except for the specs listed below, which are skipped on purpose. In each case, the feature asks a pod to share something with the host, and Edera’s isolation model doesn’t allow that.

Runc-based runtimes place containers in Linux namespaces on the host kernel, so they can join the host’s namespaces when asked. Each Edera pod runs in its own zone with its own kernel, so there is no host namespace to join. These features are unsupported by design, not broken.

Unsupported by design

FeaturePod spec fieldWhy it’s unsupported
Host networkhostNetwork: trueEdera pods always get their own network stack inside the zone, so they can’t use the host’s network namespace.
Host PIDhostPID: trueProcesses in a zone are managed by the zone’s own kernel, so they can’t see or share the host’s process table.
Host IPChostIPC: trueZones can’t share the host’s System V IPC or POSIX message queues.
Bidirectional mount propagationmountPropagation: BidirectionalMounts made inside a zone belong to the zone’s kernel and can’t propagate back to the host.

Running workloads that need host access

Workloads that require any of these features, such as some CNI agents, node exporters, and CSI node plugins, can still run on the same node. Either:

  • Assign them a non-Edera runtime class, or
  • Remove runtimeClassName from their deployment manifests so they use the node’s default runtime

Summary

AreaStatus
CRI conformance (critest)Passes, excluding the specs below
Host network, host PID, host IPCUnsupported by design
Bidirectional mount propagationUnsupported by design
User namespacesSupported inside Edera zones
ValidationAutomated in CI on every runtime change

Next steps

Last updated on