Summary
Dependencies can greatly reduce the effort required to deploy complex applications in Kubernetes. As we saw with our guestbook
chart, to deploy a Redis backend, we only needed to add five lines of YAML to our Chart.yaml
file. Compare this to the effort required to write an entirely separate Redis chart from scratch, which would have required both a high level of Kubernetes and Redis expertise.
Helm dependency management supports several different configurations to declare, as well as configure dependencies. To declare a dependency, you can specify the chart’s name
, version
, and repository
under the dependencies
map in the Chart.yaml
file. You can allow users to toggle whether to enable or disable each dependency using the condition
and tags
properties. When incorporating multiple instances of the same dependency, you can use alias
to provide each with a unique identifier, and when working with dependencies with complex values, you can use import-values
to simplify...