Skip to content

Convert Docker compose to Kubernetes manifest files

Why

Sometimes when working with docker (or podman) it makes sense to push the images in to Kubernetes.

Engineers may not have the required experience to convert their docker-compose.yaml in to the required kubernetes files

How

Install kompose

brew install kompose

Convert a file

Open a directory with a docker-compose.yaml file in it

Run the below

kompose convert

You can then specify any docker compose file

kompose --file docker-voting.yml convert

You will then get a collection of .yaml files in the current directory


Want to make this site better? Open a PR or help fund hosting costs