How to use consul/registration for service discovery on kubernetes nodes?

12/22/2016

I want to use consul/registration using registrator for service discovery on my kubernetes nodes. Need help in how should I setup consul.

I have a deployed kubernetes with 1 master and 2 minions on openstack using kubeadm. For consul and registration , do i need to run the consul container on each node master and minion? how will they communicate among each other?

-- sarora
consul
kubernetes
registrator
service-discovery

1 Answer

1/26/2018

You may want to look at using https://github.com/tczekajlo/kube-consul-register over using Registrator.

Allows you to register or deregister services/nodes/containers and apply all the benefits of Consul. You can run externally and in-cluster as a Replica Set or Deployment.

-- Brandon Clark
Source: StackOverflow