hostPath

A Kubernetes volume that mounts a file or directory from the node itself into a pod.

A hostPath mount can expose node files, sockets and credentials to the pod.

In more detail

Baseline forbids it because it lets a pod read or change the node, for example a host path mount of /var/log. Log agents that really need it belong in their own privileged namespace.

Related terms

Taught in

References

Certification courses