# Need help with resolving intermittent 502 errors

**URL:** <https://discuss.konghq.com/t/need-help-with-resolving-intermittent-502-errors/12774>\
**Category:** Questions\
**Created:** [June 18, 2024, 9:12am UTC](https://discuss.konghq.com/t/need-help-with-resolving-intermittent-502-errors/12774 "2024-06-18T09:12:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![boblewis](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/boblewis/32/4518_2.png) [@boblewis](https://discuss.konghq.com/u/boblewis)\
**Post date:** [June 18, 2024, 9:12am UTC](https://discuss.konghq.com/t/need-help-with-resolving-intermittent-502-errors/12774/1 "2024-06-18T09:12:15Z")

</div>

Hello

I am facing an issue with my Kong Gateway setup deployed in db-less mode on Kubernetes. I am intermittently seeing clients receive 502 Bad Gateway errors from Kong Gateway. Even after troubleshooting efforts, I am not able to find the root cause.

I am using Kong version 2.5.3. Kong is deployed in db-less mode on a Kubernetes cluster.

Periodically, clients are receiving 502 Bad Gateway responses from Kong Gateway. This occurs sporadically and doesn’t seem to be directly correlated with high traffic spikes or specific endpoints.

I have Checked Kong logs (kubectl logs) for any obvious errors or warnings during the periods when 502 errors occurred, but found nothing conclusive.

Verified Kong pod health (kubectl get pods -n kong) and confirmed that all Kong instances appear healthy and running.

Restarted Kong pods (kubectl delete pod \<pod\_name\> -n kong) to see if it resolves the issue temporarily, but the problem persists.

My Kubernetes cluster is running with nodes distributed across multiple availability zones.

Kong is exposed externally via a LoadBalancer service type, and I have verified that there are no issues with network connectivity or DNS resolution.

I deployed Kong using Helm (helm install kong kong/ingress -n kong --create-namespace) with custom configurations for HA (replicaCount: 3). Ihave checked [https://docs.konghq.com/](https://docs.konghq.com/) [rpa](https://www.igmguru.com/machine-learning-ai/rpa-automation-anywhere-training/) documentation but still need help .

I would appreciate any suggestions to help troubleshoot and resolve this issue effectively

Thank you all for your assistance!

Thank you 🙂  
boblewis

---

<div class="post-metadata">

**Author:** ![achiel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/achiel/32/4508_2.png) [@achiel](https://discuss.konghq.com/u/achiel)\
**Post date:** [June 18, 2024, 2:50pm UTC](https://discuss.konghq.com/t/need-help-with-resolving-intermittent-502-errors/12774/2 "2024-06-18T14:50:02Z")

</div>

Are you able to reproduce the issue, for instance by running curl in a loop? If so you may be able to leverage the debug header to get more info: [Debug requests - Kong Gateway | Kong Docs](https://docs.konghq.com/gateway/latest/production/debug-request/)
