Go from Docker Compose to Kubernetes
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
komposeis a tool to help users who are familiar with
docker-composemove to Kubernetes.
komposetakes a Docker Compose file and translates it into Kubernetes resources.
komposeis a convenience tool to go from local Docker development to managing your application with Kubernetes. Transformation of the Docker Compose format to Kubernetes resources manifest may not be exact, but it helps tremendously when first deploying an application on Kubernetes.
$ kompose convert -f docker-compose.yaml INFO Kubernetes file "frontend-service.yaml" created INFO Kubernetes file "redis-master-service.yaml" created INFO Kubernetes file "redis-slave-service.yaml" created INFO Kubernetes file "frontend-deployment.yaml" created INFO Kubernetes file "redis-master-deployment.yaml" created INFO Kubernetes file "redis-slave-deployment.yaml" created
Other examples are provided in the examples directory.
We have multiple ways to install Kompose. Our preferred method is downloading the binary from the latest GitHub release.
Our entire list of installation methods are located in our installation.md document.
Kompose is released via GitHub on a three-week cycle, you can see all current releases on the GitHub release page.
Linux and macOS:
# Linux curl -L https://github.com/kubernetes/kompose/releases/download/v1.21.0/kompose-linux-amd64 -o kompose
chmod +x kompose sudo mv ./kompose /usr/local/bin/kompose
Download from GitHub and add the binary to your PATH.
kompose upis not supported on windows.
We support both Bash and Zsh autocompletion.
# Bash (add to .bashrc for persistence) source
Development and building of Kompose
Building withgoGOPATHcorrectly or click SettingGOPATH for details
Steps: 1. Clone repositoryconsole $ git clone https://github.com/kubernetes/kompose.git $GOPATH/src/github.com/kubernetes/kompose2. Build withmakeconsole $ make bin3. Or build withgoconsole $ go build -o kompose main.go4. Test your changesconsole $ make test
Here is a list of all available docs:
Issues: If you find any issues, please file it.
Kubernetes Community: As part of the Kubernetes ecosystem, we follow the Kubernetes community principles. More information can be found on the community page.
Chat (Slack): We're fairly active on Slack and you can find us in the #kompose channel.
Participation in the Kubernetes community is governed by the Kubernetes Code of Conduct.