Opensearch dashboard not able to connect to Opensearch

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

2.16

Describe the issue:
Both open search and Open search dashboard is up and running, but Opensearch Dashboard is not able to connect to Opensearch
Log into open search dashboard pod, and able to curl with the kinanauser

[opensearch-dashboards@dmp-opensearch-dashboard-58cd4d84f6-rj5l7 ~]$ curl -XGET https://dmp-opensearch-cluster-master:9200 -u kibanaserver:Welcome123 --insecure
{
  "name" : "dmp-opensearch-cluster-master-4",
  "cluster_name" : "dmp-opensearch-cluster",
  "cluster_uuid" : "jIzJQM1KTmKtziFZqePpog",
  "version" : {
    "distribution" : "opensearch",
    "number" : "2.16.0",
    "build_type" : "tar",
    "build_hash" : "f84a26e76807ea67a69822c37b1a1d89e7177d9b",
    "build_date" : "2024-08-06T20:30:45.209655408Z",
    "build_snapshot" : false,
    "lucene_version" : "9.11.1",
    "minimum_wire_compatibility_version" : "7.10.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "The OpenSearch Project: https://opensearch.org/"
}

Configuration:

Relevant Logs or Screenshots:

{"level":"unavailable","summary":"SavedObjects service is not available without a healthy OpenSearch connection"}}}},"urlForwarding":{"level":"unavailable","summary":"[2] services are unavailable","detail":"See the status page for more information","meta":{"affectedServices":{"opensearch":{"level":"unavailable","summary":"Waiting for OpenSearch","meta":{"warningNodes":[],"incompatibleNodes":[]}},"savedObjects":
:"Unable to retrieve version information from OpenSearch nodes.","meta":{"warningNodes":[],"incompatibleNodes":[]}}}},"detail":"See the status page for more information"},"securityAnalyticsDashboards":{"level":"critical","summary":"[opensearch]: Unable to retrieve version information from OpenSearch nodes.","meta":{"affectedServices":{"opensearch":{"level":"critical","summary":"Unable to retrieve version information from OpenSearch nodes.","meta":{"warningNodes":[],"incompatibleNodes":[]}}}},"detail":"See the status page for more information"},"securityDashboards":{"level":"critical","summary":"[opensearch]: Unable to retrieve version information from OpenSearch nodes.","meta":{"affectedServices":{"opensearch":{"level":"critical","summary":"Unable to retrieve version information from OpenSearch nodes.","meta":{"warningNodes":[],"incompatibleNodes":[]}}}},"detail":"See the status page for more information"}}}},"message":"Recalculated overall status"}
{"type":"log","@timestamp":"2025-07-07T16:53:59Z","tags":["error","opensearch","data"],"pid":1,"message":"[ResponseError]: Response Error"}
{"type":"log","@timestamp":"2025-07-07T16:54:01Z","tags":["debug","metrics"],"pid":1,"message":"Refreshing metrics"}
{"type":"log","@timestamp":"2025-07-07T16:54:02Z","tags":

@ashlynjiang How many nodes are you running. Can you share your opensearch.yml and opensearch-dashboards.yml files? Dont forget to redact any sensitive details.

Also please dont forget to use code block around the configuration.