<p>I have an angular server running on kubernetes. If I do</p>

<pre><code>kubectl logs angular-pod-8d5586f44-q2jz3,
</code></pre>

<p>I get, at the bottom, the well known </p>

<pre><code>ℹ ｢wdm｣: Compiled successfully.
</code></pre>

<p>Additionally, I have also exposed the service as a NodePort on port 4200, as following lines prove:</p>

<pre><code>angular-client    NodePort    10.102.59.116    &lt;none&gt;        4200:32396/TCP   6s.
</code></pre>

<p>However, I get a connection refused error when I try </p>

<pre><code>curl 10.102.59.116:4200
curl: (7) Failed to connect to 10.102.59.116 port 4200: Connection refused.
</code></pre>

<p>Has anyone also encountered this problem and know how to fix it ?</p>

<p>By the way, I am using vagrant with virtualbox as vm-machine.</p>

<p>If you are using angular-cli, you would have to run <code>ng serve --host 0.0.0.0</code> in order for angular cli to expose the angular-life-server.
However it is <strong>not</strong> recommended to do this for production purposes, as the angular-life server is not fully reviewed for security concerns, but only meant as a development tool. To deploy you angular app for production, it would be best to do a production build (<code>ng build --prod</code>) and deploy the result inside e.g. a nginx-container.</p>
