This is what the logs says from the third master node which is not discovered,
[2020-08-12T12:38:41,342][WARN ][o.e.d.z.ZenDiscovery ] [elasticsearch-master-v1-2] not enough master nodes discovered during pinging (found [[Candidate{node={elasticsearch-master-v1-2}{F8L_VgGuRKWxxjKcQzhfzg}{ZPk-SAFESX2UFsEcH6Q7Hw}{192.188.193.101}{192.188.193.101:9300}{xpack.installed=true}, clusterStateVersion=-1}]], but needed [2]), pinging again
[2020-08-12T12:38:50,616][WARN ][o.e.d.z.ZenDiscovery ] [elasticsearch-master-v1-2] not enough master nodes discovered during pinging (found [[Candidate{node={elasticsearch-master-v1-2}{F8L_VgGuRKWxxjKcQzhfzg}{ZPk-SAFESX2UFsEcH6Q7Hw}{192.188.193.101}{192.188.193.101:9300}{xpack.installed=true}, clusterStateVersion=-1}]], but needed [2]), pinging again
[2020-08-12T12:39:15,424][WARN ][o.e.d.z.ZenDiscovery ] [elasticsearch-master-v1-2] not enough master nodes discovered during pinging (found [[Candidate{node={elasticsearch-master-v1-2}{F8L_VgGuRKWxxjKcQzhfzg}{ZPk-SAFESX2UFsEcH6Q7Hw}{192.188.193.101}{192.188.193.101:9300}{xpack.installed=true}, clusterStateVersion=-1}]], but needed [2]), pinging again
[2020-08-12T12:39:18,425][WARN ][o.e.d.z.ZenDiscovery ] [elasticsearch-master-v1-2] not enough master nodes discovered during pinging (found [[Candidate{node={elasticsearch-master-v1-2}{F8L_VgGuRKWxxjKcQzhfzg}{ZPk-SAFESX2UFsEcH6Q7Hw}{192.188.193.101}{192.188.193.101:9300}{xpack.installed=true}, clusterStateVersion=-1}]], but needed [2]), pinging again
I have deployed an elasticsearch in Kubernetes with 3 masters and 3 data nodes. All the pods are running.
Note: Now the replicaset for data-node deployment is set to 0.
Elasticsearch Version: 6.4.0
But when I had checked the the node status through elasticsearch API, only two nodes are showing up.
API CALL: /_cat/nodes?v
It should show all the three master nodes above
Why the third node is not showing up here? The following are the relevant configuration in elasticsearch.yml file.
I noticed that when in the above configuration
xpack.security.transport.ssl.enabled: false
on the same API call it showed all the three master nodesK8s Service yaml for inter node communication.
This is what the logs says from the third master node which is not discovered,