Split Brain Elasticsearch Cluster


(Marky Jackson) #1

Hello all. Hopefully this is the right area to post a question.
I have a kubernetes Elasticsearch cluster with a replica count of 3. I have my env vars set to:
> - name: NUMBER_OF_MASTERS

      value: "1"
    - name: NODE_MASTER
      value: "true"
    - name: NODE_DATA
      value: "true"

When the cluster launches I show 2 masters when I curl /_cat/nodes?v
The really strange part is that this only happens roughly 25% of the time. Sometimes all the nodes will show and there is only 1 master but if I delete and redeploy it will show a split brain again.
Am I missing something?
I do apologize in advance if this is not the right forum to ask this