Hi, I have elasticsearch cluster (8.7.0) on Kubernetes.
In the configmaps of the nodes (master,data,client) I had:
...
discovery.seed_hosts: ${NODE_LIST}
cluster.initial_master_nodes: ${MASTER_NODES}
...
In my deployments I have:
...
- name: NODE_LIST
value: elasticsearch-master, elasticsearch-data, elasticsearch-client
- name: MASTER_NODES
value: elasticsearch-master
...
After I started the cluster I deleted cluster.initial_master_nodes: ${MASTER_NODES} from every node in my cluster, but after I restarted the master node I have problems.
This is in the log of the client node:
"WARN", "message":"address [10.103.15.36:9300], node [null], requesting [false] discovery result: [][10.103.15.36:9300] connect_exception: Failed execution: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: elasticsearch-data/10.103.15.36:9300: Connection refused: elasticsearch-data/10.103.15.36:9300: Connection refused", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[elasticsearch-client][generic][T#6]","log.logger":"org.elasticsearch.discovery.PeerFinder","elasticsearch.cluster.uuid":"rliY3rQEQ1eZSvzzECFl-Q","elasticsearch.node.id":"B6L7OzUzRl60PudgYyb3eg","elasticsearch.node.name":"elasticsearch-client","elasticsearch.cluster.name":"elasticsearch"
This is in the log of data node:
"WARN", "message":"address [10.99.198.104:9300], node [null], requesting [false] discovery result: [elasticsearch-client][192.168.217.123:9300] successfully discovered master-ineligible node {elasticsearch-client}{B6L7OzUzRl60PudgYyb3eg}{GbFFdl4WRLCWCGpB-4C54A}{elasticsearch-client}{192.168.217.123}{192.168.217.123:9300}{8.7.0} at [10.99.198.104:9300]; to suppress this message, remove address [10.99.198.104:9300] from your discovery configuration or ensure that traffic to this address is routed only to master-eligible nodes", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[elasticsearch-data][generic][T#2]","log.logger":"org.elasticsearch.discovery.PeerFinder","elasticsearch.cluster.uuid":"rliY3rQEQ1eZSvzzECFl-Q","elasticsearch.node.id":"D1h6fNfURbqVHE6m9BDGuw","elasticsearch.node.name":"elasticsearch-data","elasticsearch.cluster.name":"elasticsearch"
This is in the log of master node:
"WARN", "message":"address [10.99.198.104:9300], node [null], requesting [false] discovery result: [elasticsearch-client][192.168.217.123:9300] successfully discovered master-ineligible node {elasticsearch-client}{B6L7OzUzRl60PudgYyb3eg}{GbFFdl4WRLCWCGpB-4C54A}{elasticsearch-client}{192.168.217.123}{192.168.217.123:9300}{8.7.0} at [10.99.198.104:9300]; to suppress this message, remove address [10.99.198.104:9300] from your discovery configuration or ensure that traffic to this address is routed only to master-eligible nodes", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[elasticsearch-master][generic][T#2]","log.logger":"org.elasticsearch.discovery.PeerFinder","elasticsearch.node.name":"elasticsearch-master","elasticsearch.cluster.name":"elasticsearch"
I guess I am doing something wrong or something in my configuration is incorrect, what I need to change in my configuration so this cluster can work can you please help me?