RuntimeClass

A Kubernetes object that names a container runtime configuration, such as a sandbox, which a pod picks with runtimeClassName.

In more detail

The RuntimeClass maps a name to a handler that the container runtime on each node must already know about. A pod that names a missing handler fails to start on that node. It is how a cluster runs untrusted workloads under gVisor or Kata Containers while everything else keeps the default runtime.

Example

apiVersion: node.k8s.io/v1
kind: RuntimeClass
metadata:
  name: gvisor
handler: runsc

Related terms

Taught in

References

Certification courses