Getting an Kubernetes Ingress endpoint/IP address : <pre><code>Base OS : CentOS (1 master 2 minions)
K8S version : 1.9.5 (deployed using KubeSpray)
</code></pre>

<p>I am new to Kubernetes Ingress and am setting up 2 different services, each reachable with its own path.</p>

<p>I have created 2 deployments :</p>

<pre><code>kubectl run nginx --image=nginx --port=80
kubectl run echoserver --image=gcr.io/google_containers/echoserver:1.4 --port=8080
</code></pre>

<p>I have also created their corresponding services :</p>

<pre><code>kubectl expose deployment nginx --target-port=80 --type=NodePort
kubectl expose deployment echoserver --target-port=8080 --type=NodePort
</code></pre>

<p>My <code>svc</code> are :</p>

<pre><code>[root@node1 kubernetes]# kubectl get svc
NAME         TYPE       CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE
echoserver   NodePort   10.233.48.121   &lt;none&gt;        8080:31250/TCP   47m
nginx        NodePort   10.233.44.54    &lt;none&gt;        80:32018/TCP     1h
</code></pre>

<p>My NodeIP address is <code>172.16.16.2</code> and I can access both pods using</p>

<pre><code>http://172.16.16.2:31250 &amp;
http://172.16.16.2:32018
</code></pre>

<p>Now on top of this I want to deploy an Ingress so that I can reach both pods not using 2 IPs and 2 different ports BUT 1 IP address with different paths.</p>

<p>So my Ingress file is :</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: fanout-nginx-ingress
spec:
  rules:
  - http:
      paths:
      - path: /nginx
        backend:
          serviceName: nginx
          servicePort: 80
      - path: /echo
        backend:
          serviceName: echoserver
          servicePort: 8080
</code></pre>

<p>This yields :</p>

<pre><code>[root@node1 kubernetes]# kubectl describe  ing fanout-nginx-ingress
Name:             fanout-nginx-ingress
Namespace:        development
Address:          
Default backend:  default-http-backend:80 (&lt;none&gt;)
Rules:
  Host  Path  Backends
  ----  ----  --------
  *     
        /nginx   nginx:80 (&lt;none&gt;)
        /echo    echoserver:8080 (&lt;none&gt;)
Annotations:
Events:  &lt;none&gt;
</code></pre>

<p>Now when I try accessing the Pods using the NodeIP address (172.16.16.2), I get nothing.</p>

<pre><code>http://172.16.16.2/echo
http://172.16.16.2/nginx
</code></pre>

<p>Is there something I have missed in my configs ? </p>
