Actualy you can scale Docker Swarm to hundreds of containers with less hardware than Kubernetes. And remember that in order to works the haproxy must include a functionality to recognize {{.Task.Slot}} as hostname, I don't know if Kubernetes have such functionality.

But anyway there is compatiblity of docker-compose.yml on Kubernetes with this project https://github.com/docker/compose-on-kubernetes, here a blog post example: https://blog.docker.com/2018/12/simplifying-kubernetes-with-docker-compose-and-friends/

Best regards, Marcelo.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store