- Home
- All questions
- Question 824
CKA study material · question 824 of 1000
Two containers in a Pod must share one PersistentVolumeClaim but keep their data in separate directories. Which field arranges that?
Show the answer
Answer: C. volumeMounts[*].subPath
subPath exposes a directory inside the volume rather than its root, which lets several containers share one claim without colliding. Different mount paths alone would still expose the same root.
Source: Volumes (Kubernetes) — Using subPath