How to use ingress with backend and frontend clusterIP services

I have installed ingress and applied my ingress file path = ".com/" goes to my front end and ".com/api/v1 is supposed to hi backend service. Frontend is working properly but the /api/v1 gives 502 bad gateway as response. Same configurations have worked on google cloud So, it is unlikely that it is some coding issue.

Also, I am applying files via kubtectl directly. I don’t have helm or doctl


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Suddenly, it started working after I deleted pods I want to delete this question