abpframework / eShopOnAbp

Reference microservice solution built with the ABP Framework and .NET, runs on Kubernetes with Helm configuration, includes API Gateways, Angular and ASP.NET Core MVC applications, PostgreSQL and MongoDB databases
https://www.eShopOnAbp.com/
MIT License
664 stars 259 forks source link

Product images are not available on K8s deployment #226

Open gterdem opened 5 months ago

gterdem commented 5 months ago

image

The public web application is using internal service url as remote-service for the gateway. The images can not be reached.

gterdem commented 5 months ago

On production, remote service must be set to real DNS as set in https://eshoponabp.com/ to https://gateway-public.eshoponabp.com/.

It is not possible on staging environment because the hosts file overrides:

127.0.0.1 gateway-public.eshoponabp.dev
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal

So the DNS is being tried to resolved by internal kubernetes cluster that results with not found service error.