Elasticsearch on kubernetes

Hello,

I am trying to understand the master election process on multimaster Elasticsearch cluster on kubernetes. I found one github repo where he demonstrate how to run Elasticsearch on top of Kubernetes. https://github.com/pires/kubernetes-elasticsearch-cluster

However, I am coming from docker swarm background now we are in process to port our services on Kubernetes.

In Docker Swarm "dnsrr" is the key which tell the Elasticsearch how many master containers/ip running for the services.

But in Kubernetes I don't find such config. Any info would really appreciated, it's not blocker for me I can able to run the ES on K8s but trying to understand internals.

Hi Aamir_A,

Not sure if it answers your question, but AFAIK, ECK manages the election for you.
You can see the list of settings that are being managed by ECK here:
https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-reserved-settings.html

In addition, you can see in this quickstart example that the deployment spins up 3 master nodes and no need to specify anything:
https://www.elastic.co/guide/en/cloud-on-k8s/master/k8s-advanced-node-scheduling.html

Hope it make sense

1 Like