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

Taught in

References