Study. uk . com
  1. Home
  2. All questions
  3. Question 334

CKA study material · question 334 of 1000

How does one volume serve several purposes inside a single Pod?

  1. By mounting it with subPath at different sub-directories
  2. By setting a different accessMode per container
  3. By using volumeMode Block
  4. By declaring it twice in the volumes list
Show the answer

Answer: A. By mounting it with subPath at different sub-directories

subPath mounts a sub-directory of a volume instead of its root, letting one volume serve several uses.

Source: Volumes (Kubernetes) — Using subPath

Challenge yourself on this topic → Study as cards