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 →
- Declare the dependency twice with
alias: cacheandalias: queue. - Configure each under its alias key in values.
- Reference Services by the alias-based names (
<release>-cache-master, depending on the chart's naming). - Give each its own
conditionso 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.
More on Dependencies, Subcharts & Library Charts
How do you declare a chart dependency in Helm 3?BeginnerWhat is the difference between `helm dependency update` and `helm dependency build`?IntermediateWhat is `Chart.lock` and why commit it?BeginnerHow does `condition` work on a dependency?BeginnerWhat are `tags` on dependencies?IntermediateWhat does `alias` do on a dependency?Intermediate