<p>I am trying to switch my local dev environment to run in minikube. I have all the container images built and I have all the YAML configs and I have all the services I need running and I can access them using the URL returned from <code>minikube service web --url</code> (web is the name of my front facing nginx server). But there is one thing that I have not been able to figure out. The project I am working on requires smart external devices communicating with the backend. I have a few devices sitting on  my bench, connected to the local LAN, but I cannot figure out how to expose services running inside minikube to the outside, i.e. so a device can connect to a service using my laptop's external IP. Is there a standard way of doing this?</p>

<p>Edit: I have attempted to configure an ingress for my service. Here is my ingress config.</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: web
spec:
  backend:
    serviceName: web
    servicePort: 80
</code></pre>

<p>The web service is accessible via <code>minikube service web</code> command and is exposed as type NodePort. All I get is "default backend 404" when I try to access the ingress. On the other hand, even if it did work, I would still have a problem, since ingress is exposing the service on the VM internal subnet and is not accessible from outside of the host machine. I am starting to consider running a proxy or accelerator of some sort to forward things from the host to the minikube vm. Still need to have ingress running to have a persistent endpoint for the proxy.</p>

<p>There are multiple ways. But i found out solution this way.</p>

<pre><code>~ → 🐳  $ minikube status
minikube: Running
cluster: Running
kubectl: Correctly Configured: pointing to minikube-vm at 192.168.99.100
</code></pre>

<p>Here we can connect with the service using 192.168.99.100 and nodeport. Say for Dashboard with node port 30000 the url will be: 
     <a href="http://192.168.99.100:30000/" rel="noreferrer">http://192.168.99.100:30000/</a> </p>

<p>one can get the service port by using below commands:</p>

<pre><code>~ → 🐳  $ kubectl get svc --all-namespaces
</code></pre>
