Unable to connect to opensearch via ingress

Versions :
Opensearch App version: 2.13.0
Helm Chart version: 2.19.0

Describe the issue:

I am trying to deploy Opensearch 2.13.0 with 3 replicas via Helm chart.
The pods are up and running.
I have also enabled the ingress with tls having valid certificates.
However while I am trying to connect to the cluster using ingress url and I get 502 bad gateway error from nginx

Configuration:
There is no change in any value of the configuration apart from below.

values:
    opensearch:
      resources:
        requests:
          cpu: "6"
          memory: "10Gi"
      extraEnvs:
        - name: OPENSEARCH_INITIAL_ADMIN_PASSWORD
          value: Str0ng@312!
      ingress:
        enabled: true
        tls:
          - hosts:
              -  some url
            secretName: opensearch-tls
        hosts: [
          "some url",
          "Another URL"
        ]

However I see errors like below mentioned in pod logs. Not sure it has relevance here.

[2024-05-14T18:36:55,386][ERROR][o.o.s.s.h.n.SecuritySSLNettyHttpServerTransport] [opensearch-cluster-master-0] Exception during establishing a SSL connection: io.netty.handler.ssl.NotSslRecordException: not an SSL/TLS record: 474554202f20485454502f312e310d0a486f73743a206f70656e7365617263682e6970732e73636d2e6e736e2d72646e65742e6e65740d0a582d526571756573742d49443a2037383436313733623164353665363861653836346435633631663831663631390d0a582d5265616c2d49503a2031302e3134332e38362e3132310d0a582d466f727761726465642d466f723a2031302e3134332e38362e3132310d0a582d466f727761726465642d486f73743a206f70656e7365617263682e6970732e73636d2e6e736e2d72646e65742e6e65740d0a582d466f727761726465642d506f72743a203434330d0a582d466f727761726465642d50726f746f3a2068747470730d0a582d466f727761726465642d536368656d653a2068747470730d0a582d536368656d653a2068747470730d0a7365632d63682d75613a20224368726f6d69756d223b763d22313234222c20224d6963726f736f66742045646765223b763d22313234222c20224e6f742d412e4272616e64223b763d223939220d0a7365632d63682d75612d6d6f62696c653a203f300d0a7365632d63682d75612d706c6174666f726d3a202257696e646f7773220d0a757067726164652d696e7365637572652d72657175657374733a20310d0a757365722d6167656e743a204d6f7a696c6c612f352e30202857696e646f7773204e542031302e303b2057696e36343b2078363429204170706c655765624b69742f3533372e333620284b48544d4c2c206c696b65204765636b6f29204368726f6d652f3132342e302e302e30205361666172692f3533372e3336204564672f3132342e302e302e300d0a6163636570743a20746578742f68746d6c2c6170706c69636174696f6e2f7868746d6c2b786d6c2c6170706c69636174696f6e2f786d6c3b713d302e392c696d6167652f617669662c696d6167652f776562702c696d6167652f61706e672c2a2f2a3b713d302e382c6170706c69636174696f6e2f7369676e65642d65786368616e67653b763d62333b713d302e370d0a7365632d66657463682d736974653a206e6f6e650d0a7365632d66657463682d6d6f64653a206e617669676174650d0a7365632d66657463682d757365723a203f310d0a7365632d66657463682d646573743a20646f63756d656e740d0a6163636570742d656e636f64696e673a20677a69702c206465666c6174652c2062722c207a7374640d0a6163636570742d6c616e67756167653a20656e2d55532c656e3b713d302e392c656e2d494e3b713d302e380d0a7072696f726974793a20753d302c20690d0a0d0a

Could you please check and let me know why I am unable to connect to opensearch cluster via ingress?

Please note that there are no problems wit ingress-controller deployed in the cluster since it is serving other ingress in the same cluster successfully.

@Stephy Could you share the full values.yml?
According to the error, pods have issues to communicate over SSL at the Transport layer (port 9300). Maybe security plugin configuration is missing.