title: Kubernetes: How to access a service on localhost - not the node but the service
body: <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>