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

5.3k views Asked by At

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?

1

There are 1 answers

0
Brandon Clark On

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.