- Notifications
You must be signed in to change notification settings - Fork794
Convert Compose to Kubernetes
License
kubernetes/kompose
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
kompose is a tool to help users who are familiar withdocker-compose move toKubernetes.kompose takes aCompose Specification file and translates it into Kubernetes resources.
kompose is a convenience tool to go from local Compose environment to managing your application with Kubernetes. Transformation of theCompose Specification format to Kubernetes resources manifest may not be exact, but it helps tremendously when first deploying an application on Kubernetes.
Convertcompose.yaml into Kubernetes deployments and services with one simple command:
$ kompose convert -f compose.yamlINFO Kubernetes file"frontend-service.yaml" createdINFO Kubernetes file"redis-leader-service.yaml" createdINFO Kubernetes file"redis-replica-service.yaml" createdINFO Kubernetes file"frontend-deployment.yaml" createdINFO Kubernetes file"redis-leader-deployment.yaml" createdINFO Kubernetes file"redis-replica-deployment.yaml" created
Other examples are provided in theexamplesdirectory.
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 ourinstallation.md document.
Installation methods:
Kompose is released via GitHub on a three-week cycle, you can see all current releases on theGitHub release page.
Linux and macOS:
# Linuxcurl -L https://github.com/kubernetes/kompose/releases/download/v1.37.0/kompose-linux-amd64 -o kompose# macOScurl -L https://github.com/kubernetes/kompose/releases/download/v1.37.0/kompose-darwin-amd64 -o komposechmod +x komposesudo mv ./kompose /usr/local/bin/kompose
Windows:
Download fromGitHub and add the binary to your PATH.
We support Bash, Zsh and Fish autocompletion.
# Bash (add to .bashrc for persistence)source<(kompose completion bash)# Zsh (add to .zshrc for persistence)source<(kompose completion zsh)# Fish autocompletionkompose completion fish|source
Requisites:
- make
- Golang v1.6 or later
- Set
GOPATHcorrectly or clickSettingGOPATH for details
Steps:
- Clone repository
$git clone https://github.com/kubernetes/kompose.git$GOPATH/src/github.com/kubernetes/kompose- Change directory to the cloned repo.
cd $GOPATH/src/github.com/kubernetes/kompose- Build with
make
$make bin- Or build with
go
$go build -o kompose main.go- Test your changes
$maketestDocumentation can be found at ourkompose.io website or ourdocs folder.
Here is a list of all available docs:
Issues: If you find any issues, pleasefile it.
Kubernetes Community: As part of the Kubernetes ecosystem, we follow the Kubernetes community principles. More information can be found on thecommunity page.
Chat (Slack): We're fairly active onSlack and you can find us in the #kompose channel.
Participation in the Kubernetes community is governed by theKubernetes Code of Conduct.
About
Convert Compose to Kubernetes
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
