hostPath volume
A Kubernetes volume that mounts a directory from the node's own file system into a pod.
Mounting node directories lets a pod escape into the node itself.
In more detail
A hostPath mount of a directory such as /etc/kubernetes/manifests lets a pod plant static pods or read node credentials. Pod Security baseline and restricted levels block it.
Related terms
- Pod Security Standards — Three built-in Kubernetes security profiles, called privileged, baseline and restricted, that define how locked down a pod must be.
- static pod — A pod the kubelet runs directly from a manifest file on the node, without going through the API server.
Taught in
- Detecting Persistence: Tasks, Registry & Services — Security Operations & Threat Hunting (SOC)