1

I have a very simple web app and deployed to google Kubernetes(LoadBalancer) and it is working fine. I can access my index.html like this my_external_IP:8080/myweb/html/index.html.

The index.html is a frameset which loads other htmls. But the html URLs are hardcoded like http://localhost/html/my_frame1.html in my code. But Google Kubernetes is complaining about localhost refusing to connect. I can not define localhost to my external IP before I create my war. The external IP is known to me long after.

Deployment info is in the following: LoadBalancer service not reachable

Rico
  • 58,485
  • 12
  • 111
  • 141
  • This is not with respect to kubernetes. For any web app, you can refer the other files in a HTML with relative path. – Malathi Jul 12 '19 at 04:14

1 Answers1

1

As @malathi mentioned, this is not related to Google Kubernetes at all.

Instead of using hardcoded values I recommend using Relative Paths. Basically, all your paths in your initial index.html would need to direct to html/....

Rico
  • 58,485
  • 12
  • 111
  • 141