Interview Prep/Helm/Dependencies, Subcharts & Library Charts

You need two Redis instances (cache and queue) from the same chart in one release. How?

IntermediateScenarioDependencies, Subcharts & Library Charts
Answer

Situation read → Same chart, two instances, different configs.

What I'd do →

  1. Declare the dependency twice with alias: cache and alias: queue.
  2. Configure each under its alias key in values.
  3. Reference Services by the alias-based names (<release>-cache-master, depending on the chart's naming).
  4. Give each its own condition so either can be disabled.

Why → Aliases create separate value scopes and resource names from one chart.

Interview tip → Mention that .Chart.Name becomes the alias inside the subchart.

All Helm questions Roadmap: Helm

More on Dependencies, Subcharts & Library Charts