Generate docker-compose.yaml from Helm charts

1/30/2020

I am interested in generating docker-compose.yaml files from Helm charts. Is there a good way or tool to do this?

I realize that this is in the opposite direction from what most people are doing. Why I want to do this:

  1. Our production systems run Kubernetes via Helm charts. We've got a full blown k8s and Helm setup already; no need to use a tool like Kompose to get us there. The question is how to convert Helm to docker-compose, not the other way around.
  2. We want our Helm charts to be the single authoritative source of container configuration. They are able to describe a superset of what docker-compose can.
  3. Running a set of services using Helm on a development machine is more time and resource consuming than running the same set of services via docker-compose. We do not want to slow development down by having engineers run using Helm/k8s.
  4. We do not want to maintain two sets of configurations.

Can anybody recommend how to do this, or suggest a different solution to the time/resources issue encountered on development machines?

-- Mark
docker-compose
kubernetes
kubernetes-helm

0 Answers