<p>Update:</p>

<p>Found <a href="https://webhookrelay.com/v1/examples/relay-ingress.html" rel="noreferrer">this</a>, but it that the right way?</p>

<p>I can see that I can do portforward to e node, like:</p>

<pre><code>kubectl port-forward hello-nginx 8080:80
</code></pre>

<p>But I want to play and try to scale and access a service.
I have started the service:</p>

<pre><code>kubectl expose deployment hello-nginx --type=NodePort

service “hello-nginx” exposed
</code></pre>

<p>and then:</p>

<pre><code>kubectl get services

rolling-sponge-hello-world   ClusterIP   10.104.12.39   &lt;none&gt;        80/TCP    3d
</code></pre>

<p>Then how do you proxy to the kubernetes service?</p>

<p>Note: Running Docker for Mac(Edge).</p>

<p>The best approach would be using a Ingress, as you mentioned. That way, you could send requests to your local machine IP and the Ingress controller would send the traffic to the right <code>Pods</code>.</p>

<p>For that you need to:</p>

<ul>
<li>Create <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/" rel="nofollow noreferrer">Ingress rules</a> that describe how you want the Ingress controller to route traffic to your <code>Pods</code>. These rules can redirect traffic to specific <code>Pods</code> based on the path or the host in the request.</li>
<li>Deploy an Ingress controller that will follow those rules, like the <a href="https://github.com/kubernetes/ingress-nginx" rel="nofollow noreferrer">nginx Ingress controller</a>. You can learn how to deploy it in <a href="https://medium.com/@gokulc/setting-up-nginx-ingress-on-kubernetes-2b733d8d2f45" rel="nofollow noreferrer">this blog post</a>.</li>
</ul>

<p><a href="https://www.datawire.io/docker-mac-kubernetes-ingress/" rel="nofollow noreferrer">This blog post</a> talks specifically about Docker for mac and Ingress.</p>
