3 node opensearch cluster not able initialized

well,

pods does not communicate between themself, ( according this )

so i added:

cluster.initial_master_nodes:
  - opensearch-cluster-master-0
  - opensearch-cluster-master-1
  - opensearch-cluster-master-2

into opensearch.yml, then rollout statefullset,
then, directly in pod opensearch-cluster-master-0 and made “indexing” as in the log was errors regarding indexing…:

/usr/share/opensearch/plugins/opensearch-security/tools/securityadmin.sh -cacert /usr/share/opensearch/config/tls-http/ca.crt -cert /usr/share/opensearch/config/tls-http/admin.crt -key /usr/share/opensearch/config/tls-http/admin.key -cd /usr/share/opensearch/config/opensearch-security/ -h opensearch-cluster-master

after, UI opensearch-dashboard started working and command:

[opensearch@opensearch-cluster-master-0 ~]$ curl -XGET https://localhost:9200/_cluster/health?pretty=true -u 'admin:xxxx' --insecure
{
  "cluster_name" : "opensearch-cluster",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 3,
  "number_of_data_nodes" : 3,
  "discovered_master" : true,
  "discovered_cluster_manager" : true,
  "active_primary_shards" : 4,
  "active_shards" : 10,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0,
  "task_max_waiting_in_queue_millis" : 0,
  "active_shards_percent_as_number" : 100.0
}

return what i want to.