Failed to discover Elasticsearch cluster

I tried to deploy two nodes Elasticsearch cluster but failed on discover master node.

One node yml file:

cluster.name: elk-cluster
    network.host: "0.0.0.0"
    bootstrap.memory_lock: false
    node.name: master
    node.master: true
    node.data: false
    cluster.initial_master_nodes:
      - es-entrypoint-0.default.svc.cluster.local
    discovery.seed_hosts:
      - es-entrypoint-0.default.svc.cluster.local:9200
      - es-entrypoint-1.default.svc.cluster.local:9200

The other one has:

cluster.name: elk-cluster
    network.host: "0.0.0.0"
    bootstrap.memory_lock: false
    node.name: worker
    node.master: false
    node.data: true
    discovery.seed_hosts:
      - es-entrypoint-0.default.svc.cluster.local:9200
      - es-entrypoint-1.default.svc.cluster.local:9200

I got below error:

{"type": "server", "timestamp": "2021-09-22T12:27:55,690Z", "level": "INFO", "component": "o.e.c.c.ClusterBootstrapService", "cluster.name": "elk-cluster", "node.name": "master", "message": "skipping cluster bootstrapping as local node does not match bootstrap requirements: [es-entrypoint-0.default.svc.cluster.local]" }
{"type": "server", "timestamp": "2021-09-22T12:28:05,694Z", "level": "WARN", "component": "o.e.c.c.ClusterFormationFailureHelper", "cluster.name": "elk-cluster", "node.name": "master", "message": "master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [es-entrypoint-0.default.svc.cluster.local] to bootstrap a cluster: have discovered [{master}{vnw-dX52Sji04DDtDbDK2w}{k3E7jD1-RdCG5ml32LgCdg}{10.0.2.163}{10.0.2.163:9300}{lmr}]; discovery will continue using [10.0.2.163:9200, 10.0.2.93:9200] from hosts providers and [{master}{vnw-dX52Sji04DDtDbDK2w}{k3E7jD1-RdCG5ml32LgCdg}{10.0.2.163}{10.0.2.163:9300}{lmr}] from last-known cluster state; node term 0, last-accepted version 0 in term 0" }

I don't understand why the master failed to discover?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.