<p>I am trying to deploy nginx - ingress </p>

<pre><code>kubectl run nginx --image=nginx

kubectl get pod 
NAME                                       READY     STATUS        RESTARTS   AGE
nginx-65899c769f-wf7dl                     1/1       Running       0          9m


kubectl expose deploy nginx --port 80
NAME         TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE
nginx        ClusterIP   10.254.75.184      &lt;none&gt;     80/TCP           9m
</code></pre>

<hr>

<pre><code>vi ingress.yml

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: nginx
spec:
  rules:
    - host: kub-mst.coral.io
      http:
        paths:
          - backend:
              serviceName: nginx
              servicePort: 80
</code></pre>

<hr>

<pre><code>kubectl get ing
NAME      HOSTS              ADDRESS   PORTS     AGE
nginx     kub-mst                      80        9m
</code></pre>

<hr>

<pre><code>vi /etc/hosts
xx.xx.xx.xx  kub-mst.coral.io
</code></pre>

<hr>

<pre><code>curl kub-mst.coral.io
curl: (7) Failed connect to kub-mst; Connection refused
</code></pre>

<p>I have Kubernetes Cluster and am trying to </p>

<pre><code>curl http://xx.xx.xx.xx
</code></pre>

<p>it returns </p>

<pre><code>curl: (7) Failed connect to xx.xx.xx.xx:80; Connection refused
</code></pre>

<p>and i execute     </p>

<pre><code>kubectl cluster-info
</code></pre>

<p>it returns </p>

<pre><code>Kubernetes master is running at http://localhost:8080
KubeDNS is running at http://localhost:8080/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
</code></pre>

<p>xx.xx.xx.xx is public IP.</p>

<p>how to troubleshooting to detect where is the problem </p>

AhmedMItman
<p>You provided the ingress controller with a single rule that matches the <strong>host</strong> header of your request, yet, for some odd reason, you're testing with a request that does not provide the host header.</p>

<p><code>curl -H 'Host: kub-mst.coral.io' http://xx.xx.xx.xx</code></p>
