v1.20.0
Kompose 1.20.0!
Here's the new features of 1.20.0:
- Added flag to push an imaging when using
kompose up(#1147) - Top level non-service keys are now merged in correctly when converting (#1187)
networksis now an officially supported key (#1195)- Added support for file based secrets (#1159)
- Multiple tests have been fixed (#1175) (#1197) (#1198)
- Updated documentation on endpoint_mode (#1151)
- Updated OWNERS (#1177)
- Fixed golint error (#1178)
- Binaries are now statically built (#1193)
Pushing an image with kompose up:
You can now push an image when using kompose up.
kompose up --push-image trueNetworks are now supported:
The networks key is now officially supported.
For example:
version: '3'
networks:
app:
external:
name: app-network
web:
external:
name: web-network
services:
appFoo:
image: foo:latest
command: sh -c "echo Hello Foo"
networks:
app: {}
web: {}Will now convert to the equivilant matchLabels selector: "io.kompose.network/web-network": "true" on each pod.
Added support for file based secrets:
Secrets will now convert when going from docker-compose.yaml to Kubernetes.
For example:
version: "3.1"
services:
redis:
image: redis:latest
deploy:
replicas: 1
secrets:
- source: my_secret
target: redis_secret
uid: '103'
gid: '103'
mode: 0440
secrets:
my_secret:
file: ./my_secret.txt
my_other_secret:
external: trueWill generate and create the kubernetes equivalent.
Installation
Linux and macOS:
# Linux
curl -L https://github.com/kubernetes/kompose/releases/download/v1.20.0/kompose-linux-amd64 -o kompose
# macOS
curl -L https://github.com/kubernetes/kompose/releases/download/v1.20.0/kompose-darwin-amd64 -o kompose
chmod +x kompose
sudo mv ./kompose /usr/local/bin/komposeWindows:
Download from GitHub and add the binary to your PATH.
Checksums:
| Filename | SHA256 Hash |
|---|---|
| kompose-1.20.0-1.x86_64.rpm | 9cd911d3486564fe8104d8056efe5972228ff2c8f0597249963632b987338b6a |
| kompose-1.20.0-1.x86_64.rpm.tar.gz | 77cb6ed345617ab32771c87dc4a922d867c0a6dea44883b80cfbb7f32b16b5d1 |
| kompose_1.20.0_amd64.deb | b4a8b0aa53a9d6e07c2758f99364c81b36a3b441a362035620733af8623c59b5 |
| kompose_1.20.0_amd64.deb.tar.gz | 40e3802902f34eb1f72073f08499f5ff92fcecfa9f3e2bbf1bd79ada01fbfb43 |
| kompose-darwin-amd64 | 41c703e70eda6e0ece3dec30d36802829512d4d0c8d339b55ed621362baa6d35 |
| kompose-darwin-amd64.tar.gz | 66d9652ee3b0953e3e2a7793534d8bd454305a3780b010f8721e6e8a0b4dabaf |
| kompose-linux-amd64 | 449ad5ccd5e0ead98d3efab57b0dc427e5825d1260139025d3a3b8696cf36831 |
| kompose-linux-amd64.tar.gz | 66b8785fec6113a36d120c5b171bbef9346e7d801b712a9e2d12e15f3e4b9741 |
| kompose-linux-arm | 023b5fef033c828dfa5c59c00c1a08449c8a7c0f82f1d6132af9c55cf67ad23e |
| kompose-linux-arm.tar.gz | d4d6449637976c6740c941ef26a41d2120d91be3d2df7c08aa0cf91963e80462 |
| kompose-windows-amd64.exe | b62c28ffb79ab2c42e0ab7da74824b1aa43dc97e775198c9e744fd89a3cd2b84 |
| kompose-windows-amd64.exe.tar.gz | 504fa68dafbb0b5ecf4c0ef63d9ae90b4a5da8f03f4c42eacce9ca6d62707896 |
| SHA256_SUM | bdef2fc70afc1d9f1be54f81668117c9f61a28cfe2aca3d6a31d21065bf31931 |