gVisor

A container sandbox from Google that answers a container's system calls with its own user-space kernel, so they never reach the host kernel directly.

In more detail

Its runtime is called runsc, and Kubernetes selects it through a RuntimeClass. Inside the sandbox, uname reports gVisor's own kernel version rather than the node's. The extra layer costs some speed and compatibility in exchange for a much smaller attack surface on the host kernel.

Example

kubectl run untrusted --image=nginx --overrides='{"spec":{"runtimeClassName":"gvisor"}}'

Related terms

Taught in

References

Certification courses