<p>My ingress controller is working and I am able to access the service outside the cluster using <code>http://(externalIP)/path</code> using an HTTP GET request from a RestClient. However, I had to specify the <code>"Host"</code> header with <code>value = "host"</code> (value of my Ingress Resource) for this to work. Because of this, I am not able to hit <code>http://(externalIP)/path</code> from my web browser. Is there any way I can enable access from my external web browser without having to specify <code>"Host"</code> in the request header?</p>

<p><strong>Ingress Resource :</strong></p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: my-ingress
  namespace: ingress-nginx
  annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
  - host: master1.saas.com
    http:
      paths:
      - backend:
          serviceName: gen-devops
          servicePort: 10311
        path: /*
</code></pre>

<p><strong>Ingress Service :</strong></p>

<pre><code>apiVersion: v1
kind: Service
metadata:
  name: ingress-nginx
 namespace: ingress-nginx
  labels:
    app.kubernetes.io/name: ingress-nginx
    app.kubernetes.io/part-of: ingress-nginx
spec:
  type: NodePort
  ports:
    - name: http
      port: 80
      targetPort: 80
      protocol: TCP
    - name: https
      port: 443
      targetPort: 443
      protocol: TCP
   externalIPs:
    - 172.16.32.85

  selector:
    app.kubernetes.io/name: ingress-nginx
    app.kubernetes.io/part-of: ingress-nginx
</code></pre>

<p>I assume you want to use this for testing.</p>

<p>If you are using any *nix flavor OS (MacOS, Linux) you can add an entry to your <code>/etc/hosts</code> file, something like this:</p>

<pre><code>172.16.32.85 master1.saas.com
</code></pre>

<p>If you are using any Windows box you can add the same entry in <code>C:\Windows\System32\Drivers\etc\hosts</code></p>
