konveyor / move2kube

Move2Kube is a command-line tool for automating creation of Infrastructure as code (IaC) artifacts. It has inbuilt support for creating IaC artifacts for replatforming to Kubernetes/Openshift.
https://move2kube.konveyor.io/
Apache License 2.0
383 stars 118 forks source link

Convert a Helm Chart to docker compose #911

Open mmattel opened 1 year ago

mmattel commented 1 year ago

Knowing by reading the name the direction (move3kube), I just wanted to know if it is possible to do it the other way round. Hope that this is not a stupid question but we have a case where this would be helpful to have an outcome as guideline for next tasks.

ashokponkumar commented 1 year ago

It's not supported out of the box, but technically speaking, it is achievable with custom transformers. If we write a custom transformer to read kubernetes yamls and load them to IR artifact, then it will end up creating docker compose files. If you have only a few fields you are interested in, the starlark transformer lets you read yaml, from where you can build up an IR artifact.

But since many of the features of kubernetes is not present in docker compose, it will result in a loss of data.