Difference between Kompose and compose-on-kubernetes

2/27/2019

I am evaluating a migration of an application working with docker-compose to Kubernates and came across two solutions: Kompose and compose-on-kubernetes.

I'd like to know their differences in terms of functionality/ease of use to make decision of which one is more suited.

-- staticdev
cloud
docker-compose
kubernetes
migration

1 Answer

2/28/2019

Both product provide a migration path from docker-compose to Kubernetes, but they do it in a slightly different way.

  • Compose on Kubernetes runs within your Kubernetes cluster and allows you to deploy your compose setup unchanged on the Kubernetes cluster.
  • Kompose translates your docker-compose files to a bunch of Kubernetes resources.

Compose is a good solution if you want to continue running using docker-compose in parallel to deploying on Kubernetes and so plan to keep the docker-compose format maintained.

If you're migrating completely to Kubernetes and don't plan to continue working with docker-compose, it's probably better to complete the migration using Kompose and use that as the starting point for maintaining the configuration directly as Kubernetes resources.

-- intellectronica
Source: StackOverflow