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

<p>The <code>index.html</code> is a frameset which loads other htmls. But the html URLs are hardcoded like <a href="http://localhost/html/my_frame1.html" rel="nofollow noreferrer">http://localhost/html/my_frame1.html</a> 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.</p>

<p>Deployment info is in the following:
<a href="https://stackoverflow.com/questions/56997861/loadbalancer-service-not-reachable">LoadBalancer service not reachable</a></p>

<p>As @malathi mentioned, this is not related to Google Kubernetes at all.</p>

<p>Instead of using hardcoded values I recommend using <a href="https://stackoverflow.com/a/24028813/2989261">Relative Paths</a>. Basically, all your paths in your initial index.html would need to direct to <code>html/...</code>.</p>
