Consuming a web api inside a web application project when using Kubernetes enabled in Docker Desktop and Helm
Just posting my comment as an answer:
To access your POD you need to call your service "dotnetlinux" on port :80, something like dotnetlinux:80/yourAPI
.
You can also run kubectl get services
to get the IP of the service, then use that. Not a good approach though, as the IP of the service will change every time your service is restarted.
In this documentation page there is a lot of details about Services and the sessions Motivation and Service resources explain why Services are needed, and how they help you in your case.