Convert your Docker Compose file to Kubernetes or OpenShift
open sourceApache-2.0self-hostablefree
Kompose is an official Kubernetes project that converts a Compose Specification file into Kubernetes (or OpenShift) manifests. One command, kompose convert, turns each service in a compose.yaml into deployments, services and other resources you can apply with kubectl, so a team that runs its app locally with Docker Compose can move it to Kubernetes. Conversions are not always one-to-one; a conversion matrix lists the supported keys and versions, and Kompose labels in the Compose file fill the gaps (load balancers, ingress and TLS, among others).
Problems it solves
- move my app from docker-compose to Kubernetes without writing all the YAML by hand
- generate Kubernetes deployments and services from an existing compose.yaml
- deploy a Docker Compose project to OpenShift
Features
- converts Compose files to Kubernetes manifests
- OpenShift output
- supports several Compose file versions
- conversion matrix of supported keys
- labels for load balancers, services and TLS
- installs as a single binary, with Homebrew, Docker and distro packages
Alternatives
The same job
These do what Kompose does.
- Docker Compose Define and run multi-container applications with Docker
- Aspire Compose distributed apps in code
- podman-compose A script to run docker-compose.yml using podman
