Why use Consul with Kubernetes, Docker, Mesos?

9/29/2016

Most container services have some sort of built in service discovery mechanism. So why is it that someone would still incorporate Consul into their setup? I know that Consul provides other benefits besides service discovery, such as K/V store, Consul templates, and service monitoring, however none of these seem like a big enough benefit.

-- Dan K
consul
docker
kubernetes
mesos

1 Answer

10/1/2016

It's simple - it depends on your application. If it needs those features Consul have, and which other systems don't, then you can go for it.

Besides that, there are a lot of Hashicorp products tightly integrated with a Consul in part of HA. Vault, Nomad and Terraform. Consul can be used like a variant of ZooKeeper, but Raft based. We use it that way.

Another concern, maybe you would like to have another layer of indirection in your system. Consul cluster can stand for verifying connectivity between various remote parts and etc.

So, it's not about how big is the advantage, it's about your very specific requirements and limitations in your very own moment.

-- Ivan Prisyazhnyy
Source: StackOverflow