Pod cannot read/write hostPath volume due to permission mismatch. Container UID/GID does not match directory ownership on host. Write operations fail despite mounted path.
Fixes Permission denied when accessing hostPath volume
# Permission denied when accessing hostPath volumePermission denied when accessing hostPath volume
hostPath volumes mount host directories directly into pods. When the pod's running user (container UID/GID) does not match the directory's ownership on the host, permission checks fail. Linux file permissions are enforced at the kernel level—the pod's process cannot read or write the directory even though the pod is allowed to mount it.
First diagnostic step
Second diagnostic step
Third diagnostic step
Fourth diagnostic step
Fifth diagnostic step
Additional notes and platform-specific considerations.