I’m new to OpenSearch, and I used the OpenSearch Operator to deploy an OpenSearch cluster in Kubernetes. I created a Traefik ingress route and nginx ingress resource to access the OpenSearch dashboard, but when I try to access the dashboard via the ingress resource, I receive a 502 error. I checked the logs, and I see the same message being printed, but there are no errors or restarts in the dashboard pods. Could you please assist me with this?
Ingress Error upstream prematurely closed connection while reading response header from upstream, client:
@pablo
Thank you for your response.
Please find the manifest file attached.
At the moment, I have not configured Logstash, and the cluster is running without any log processing or indexing. This is a fresh cluster
I have further troubleshot this issue and noticed that my OpenSearch dashboard takes a significant amount of time to respond to my requests(port-forwarding). which may be contributing to the issue. However, since it is not receiving any data, I’m curious why the response time is still slow. It seems that I may have missed some required configurations for the dashboard. Could you please advise on any configurations that might improve the response time?"
> Ingress error is upstream prematurely closed connection while reading response header from upstream, client:
Additionally, I tried enabling the base directory path and rewrite targets, but I am still getting the same error.
Thank you for your response. I have enabled TLS settings for my ingress and added a self-signed certificate for it, which is attached to the ingress resource. However, I’ve tried the solution you provided, and unfortunately, I’m still encountering the same error.
@athen I got this working with nginx ingress yesterday but traefik kept giving me 502 when OpenSearch Dashboards was set to HTTPS ( dashboards.tls.enable: true)
Hi ,
Initially, I tried using the Traefik Ingress Controller, but I encountered the same error. The controller logs did not provide much information. Then, I switched to NGINX, and I had previously installed the F5 NGINX Ingress Controller, which also triggered the 502 error. However, the Kubernetes Ingress worked fine.