title: Kubernetes Ingress running behind nginx reverse proxy
body: <p>I have installed minikube on a server which I can access from the internet.</p>
  
  <p>I have created a kubernetes service which is available:</p>
  
  <pre><code>&gt;kubectl get service myservice
  NAME        CLUSTER-IP   EXTERNAL-IP   PORT(S)        AGE
  myservice   10.0.0.246   &lt;nodes&gt;       80:31988/TCP   14h
  </code></pre>
  
  <p>The IP address of minikube is:</p>
  
  <pre><code>&gt;minikube ip
  192.168.42.135
  </code></pre>
  
  <p>I would like the URL <code>http://myservice.myhost.com</code> (i.e. port 80) to map to the service in minikube.</p>
  
  <p>I have nginx running on the host (totally unrelated to kubernetes). I can set up a virtual host, mapping the URL to <code>192.168.42.135:31988</code> (the node port) and it works fine.</p>
  
  <p>I would like to use an ingress. I've added and enabled ingress. But I am unsure of:</p>
  
  <p>a) what the yaml file should contain</p>
  
  <p>b) how incoming traffic on port 80, from the browser, gets redirected to the ingress and minikube.</p>
  
  <p>c) do I still need to use nginx as a reverse proxy?</p>
  
  <p>d) if so, what address is the ingress-nginx running on (so that I can map traffic to it)?</p>