Opensearch Dashboard Connection error coming dureing deploying the Dashboard component

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
opensource {{opensearch-Dashboard:2.9.0}}

Describe the issue:
I am trying into install the OpenSearch Dashboard 2.9.0 version component in Azure AKS cluster using HELM charts. But during deployment helm charts complain that there is Caused by: “message”:“[ConnectionError]: write EPROTO 140388088182720:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:…/deps/openssl/openssl/ssl/record/ssl3_record.c:332:\n”}. we need a way to avoid this error.


Relevant Logs or Screenshots:

Hey @bhanu1

Is Opensearch and Opensearch-dashboard thet same verions?

@bhanu1 Could you share the full values.yml file?
As far as I remember AKS is using Kubernetes above 1.18. Therefore, you should use ingressClassName in the ingress definition.

@bhanu1 If you have nginx ingress installed then ingress rule should be like the one below.

  enabled: true
  # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
  # See
  # ingressClassName: nginx
    # nginx
    # "true"
  ingressClassName: nginx
    - host: <host_name>
        - path: /
            serviceName: "opensearch-dashboards"
            servicePort: 5601
  tls: []
  #  - secretName: chart-example-tls
  #    hosts:
  #      - chart-example.local

If you didn’t enable TLS on the OpenSearch Dashboards then connection should be done through HTTP.
I assume that the provided errors come from OpenSearch Dashboards pod logs. It looks like OpenSearch Dashboards can’t connect with the OpenSearch node. Did you use the correct protocol (HTTP or HTTPS)?
The full values.yml file will be very helpful.