Kompose is a tool that can run docker-compose.yml in kubernetes, and can also convert docker-compose.yml into corresponding files in kubernetes, which is very convenient.
# macOS curl -L https://github.com/kubernetes-incubator/kompose/releases/download/v0.5.0/kompose-darwin-amd64 -o kompose chmod +x kompose sudo mv ./kompose /usr/local/bin/kompose
Execute under the docker-compose.yml folder directory to be converted
be crowned with success
If you don’t want to convert, you can also run it directly.