
- A Kubernetes cluster with nodes that have the alternative runtime installed (for example, gVisor’s
runscor Kata Containers’kata). - The node’s container runtime (e.g.,
containerd) must be configured to expose the runtime handler name that you will reference in the RuntimeClass.
- RuntimeClass is a cluster-scoped object that allows you to select the container runtime configuration used to run a Pod.
- It lets you target Pods to a specific runtime handler available on nodes (for example
runscfor gVisor).
Ensure the runtime (for example, gVisor /
runsc) is installed and configured on every node that may run Pods referring to this RuntimeClass. The handler value must match the runtime name configured in the node’s container runtime (for example, containerd).gvisor-runtimeclass.yaml):
gvisor-nginx.yaml):
- List available RuntimeClasses:
- Inspect the Pod spec to confirm it references
runtimeClassName: gvisor:
runsc (gVisor), the container process runs inside the runtime’s sandbox. Because gVisor provides a user-space kernel boundary, the containerized process is isolated from the node kernel and does not appear as a normal host process.
Example on the node:
runsc is visible, while the container’s internal process is not shown to the host kernel).
Links and references
- gVisor — documentation
- gVisor runsc — user guide
- Kata Containers
- containerd
- Kubernetes RuntimeClass API