- Home
- All questions
- Question 840
CKA study material · question 840 of 1000
A hostPath volume of /mnt is mounted read-only into a container, but a tmpfs mounted at /mnt/data on the host is writable inside. Why?
Show the answer
Answer: C. On Linux a read-only mount is not recursive by default
A read-only mount does not by default cover filesystems mounted beneath it, so a submount can remain writable; recursiveReadOnly is what closes that gap.
Source: Volumes (Kubernetes) — Read-only mounts