Bird
0
0

You want to create a Helm chart that supports multiple container images with different tags. How should you structure values.yaml to support this?

hard📝 Workflow Q8 of 15
Kubernetes - Helm Package Manager
You want to create a Helm chart that supports multiple container images with different tags. How should you structure values.yaml to support this?
AUse environment variables instead of values.yaml
BUse a list of objects, each with <code>name</code> and <code>tag</code> fields
CUse a single string with comma-separated image names and tags
DCreate separate charts for each image
Step-by-Step Solution
Solution:
  1. Step 1: Understand multi-image configuration

    Using a list of objects with name and tag allows flexible, clear configuration.
  2. Step 2: Evaluate other options

    Comma-separated strings are hard to parse; environment variables don't replace values.yaml; separate charts add complexity.
  3. Final Answer:

    Use a list of objects, each with name and tag fields -> Option B
  4. Quick Check:

    List of objects = best multi-image config [OK]
Quick Trick: Use lists of objects for multiple images [OK]
Common Mistakes:
  • Using comma-separated strings causing parsing issues
  • Relying on environment variables only
  • Splitting into multiple charts unnecessarily

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes