#### What type of PR is this? <!-- Add one of the following kinds: /kind bug /kind cleanup /kind documentation /kind feature --> #### What this PR does / why we need it: We've switched to main, so the previous command no longer worked since it was searching for master. #### Which issue(s) this PR fixes: <!-- *Automatically closes linked issue when PR is merged. Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> N/A #### Special notes for your reviewer: N/A Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2.4 KiB
| layout | permalink | title | redirect_from | ||
|---|---|---|---|---|---|
| default | /installation/ | Installation |
|
Installation
- TOC {:toc}
We have multiple ways to install Kompose. Our preferred (and most up-to-date) method is downloading the binary from the latest GitHub release.
GitHub release
Kompose is released via GitHub, 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.28.0/kompose-linux-amd64 -o kompose
# macOS
curl -L https://github.com/kubernetes/kompose/releases/download/v1.28.0/kompose-darwin-amd64 -o kompose
chmod +x kompose
sudo mv ./kompose /usr/local/bin/kompose
Windows:
Download from GitHub and add the binary to your PATH.
Go
Installing using go install pulls from the main branch with the latest development changes.
go install github.com/kubernetes/kompose@latest
CentOS
Kompose is in EPEL CentOS repository.
If you don't have EPEL repository already installed and enabled you can do it by running sudo yum install epel-release
If you have EPEL enabled in your system, you can install Kompose like any other package.
sudo yum -y install kompose
Fedora
Kompose is in Fedora 24, 25 and 26 repositories. You can install it just like any other package.
sudo dnf -y install kompose
macOS
On macOS, you can install the latest release via Homebrew or MacPorts.
brew install kompose
Windows
Kompose can be installed via Chocolatey
choco install kubernetes-kompose
Docker
You can build an image from the official repo for Docker or Podman:
docker build -t kompose https://github.com/kubernetes/kompose.git\#main
To run the built image against the current directory, run the following command:
docker run --rm -it -v $PWD:/opt kompose sh -c "cd /opt && kompose convert"