I have an umbrella chart containing multiple subcharts. I want to ensure that the subcharts are installed in a given order since some of them have dependencies on the others. Specifying them as hook resources can only control the order within the sub chart. Is there a way to control the order in such a way that the subcharts get installed in the specified order?
Asked
Active
Viewed 1,271 times
0
-
Does this answer your question? [Helm Subchart order of execution in an umbrella chart](https://stackoverflow.com/questions/50492389/helm-subchart-order-of-execution-in-an-umbrella-chart) – David Maze Jul 08 '21 at 10:15
-
Usual Kubernetes practice is to start everything together; if something's dependencies aren't available yet (or have failed after startup) then the pod will crash and restart, but after a couple of minutes the whole stack will usually be up. Helm doesn't have an option to order either subcharts or specific Kubernetes objects. – David Maze Jul 08 '21 at 10:16
1 Answers
0
Helm itself does not provide any tolling to control the installation order of the dependency charts. However, you can use any helm controller or CI/CD tool like Flux to manage such dependency order.
Here, is an example of managing order of charts using Flux CD: https://fluxcd.io/docs/components/helm/helmreleases/#helmrelease-dependencies

Emruz Hossain
- 4,764
- 18
- 26