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
- RuntimeClass — A Kubernetes object that names a container runtime configuration, such as a sandbox, which a pod picks with runtimeClassName.
- container runtime — Software that creates and runs containers from images.
- Kata Containers — A container runtime that starts each pod inside its own lightweight virtual machine, with its own kernel, for stronger isolation.
Taught in
- Secrets In Use: Leaks Through Env, Specs And Images — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Sandboxed Pods: RuntimeClass And gVisor — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Minimal Base Images: Less To Attack — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Mock Exam: Seventeen Security Tasks Against The Clock — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Final Review: The Cluster You Would Defend — Certified Kubernetes Security Specialist (CKS) Exam Prep
- How Thick Is The Wall? Isolation Techniques — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Overview Sprint: Four Findings Before The Auditor — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Created, But Never Running: Pod Security Admission — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep