<p>I had a Angular 7 web app, I am trying to consume a REST API deployed in Kubernetes that port is not open to the Internet. </p>

<p>Tried with http client module ... but this is executing client side ... so no way to reach the service that is running in Kubernetes. </p>

<p>Is it possible to consume this without expose the service to the Internet ?</p>

<p>Your Angular application is running on your clients so you have to publicly expose the REST API in order to consume it from there. If you only want to expose the API for specific IPs (if your Angular application should only work within your intranet for example), then you can use an ingress controller (e. g. nginx) and configure it with annotations. Example:</p>

<pre><code>nginx.ingress.kubernetes.io/whitelist-source-range: &lt;YourNetworkCIDR&gt;
</code></pre>
