Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Convert Compose to Kubernetes

License

NotificationsYou must be signed in to change notification settings

kubernetes/kompose

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Build Status WidgetCoverage Status WidgetGoDoc WidgetGoReportCard Widget

logo

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.

Use Case

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.

Installation

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:

Binary installation

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.

Shell autocompletion

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

Development and building of Kompose

Building withgo

Requisites:

  1. make
  2. Golang v1.6 or later
  3. SetGOPATH correctly or clickSettingGOPATH for details

Steps:

  1. Clone repository
$git clone https://github.com/kubernetes/kompose.git$GOPATH/src/github.com/kubernetes/kompose
  1. Change directory to the cloned repo.
cd $GOPATH/src/github.com/kubernetes/kompose
  1. Build withmake
$make bin
  1. Or build withgo
$go build -o kompose main.go
  1. Test your changes
$maketest

Documentation

Documentation can be found at ourkompose.io website or ourdocs folder.

Here is a list of all available docs:

Community, Discussion, Contribution, and Support

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.

Code of Conduct

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

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp