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: runscRelated terms
- 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.
- Kata Containers — A container runtime that starts each pod inside its own lightweight virtual machine, with its own kernel, for stronger isolation.
- container runtime — Software that creates and runs containers from images.
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
- 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
- A Pod That Mounts The Node: Runtime, Pods And Storage — 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
- Threat Model Sprint: Name It, Then Stop It — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep