Aug 31, 2018 · 1 min read
Hi Rinor,
Thanks for the article. I’ve got a question and I’d be glad if you can answer it. What if I want to use the DNS for the web app instead of its IP address? For example using
fetch('http://sa-web-app-lb.svc.cluster.local/sentiment')instead of
fetch('http://192.168.99.100:31691/sentiment')I’ve tried it my own project but I could not achieve it. Do you have any ideas about this problem?
By the way, if I enter the running frontend docker container and curl -X GET -v -i http://backend_service:8080 it works as expected. But I cannot observe the results from the browser side and I get the Failed to load resource: net::ERR_NAME_NOT_RESOLVED error.
I appreciate your help, thanks a lot.
