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

CKA study material · question 606 of 1000

An operator updates a Secret, and one container picks up the new value while another, mounting the same Secret, does not. What most likely differs?

  1. The stale container mounted the Secret through subPath
  2. The stale container used a projected volume
  3. The stale container is in a different namespace
  4. The Secret was marked optional in the stale container's Pod
Show the answer

Answer: A. The stale container mounted the Secret through subPath

A volume from a Secret is refreshed as the Secret changes, but a subPath mount is explicitly excluded from those automated updates.

Source: Secrets (Kubernetes) — Using Secrets as files from a Pod

Challenge yourself on this topic → Study as cards