<p>I'm trying to create an nginx-ingress for my 2 services without LB. First, I create <code>nginx_ingress.yaml</code>:</p>

<pre><code>kind: Service
apiVersion: v1
metadata:
  name: ingress-nginx
  namespace: ingress-nginx
  labels:
    app: ingress-nginx
spec:
  selector:
    app: ingress-nginx
  type: NodePort
  ports:
    - name: http
      port: 80
      targetPort: http
    - name: https
      port: 443
      targetPort: https
---
</code></pre>

<p>And then <code>echo_ingress.yaml</code>:</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: echo-ingress
spec:
  rules:
  - host: subdomain1.example.com
    http:
      paths:
      - backend:
          serviceName: echo1
          servicePort: 80
  - host: subdomain2.example.com
    http:
      paths:
      - backend:
          serviceName: echo2
          servicePort: 80
</code></pre>

<p>But, when ingress was created, it doesn't show its address and it seems not running properly, I cannot get anything from port 80 on <code>curl</code>:</p>

<pre><code>NAME           HOSTS                                  ADDRESS   PORTS   AGE
echo-ingress   git.satelkom.co.id,op.satelkom.co.id             80      8m9s
</code></pre>

<p>What's going wrong here?</p>

Justinus Hermawan
<p>If you try to define path ?</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: echo-ingress
spec:
  rules:
  - host: subdomain1.example.com
    http:
      paths:
      - backend:
          serviceName: echo1
          servicePort: 80
        path: /   # &lt;--- Add this tag
  - host: subdomain2.example.com
    http:
      paths:
      - backend:
          serviceName: echo2
          servicePort: 80
        path: /   # &lt;--- Add this tag
</code></pre>

<p>Or define external IPs on ingress service</p>

<pre><code>kind: Service
apiVersion: v1
metadata:
  name: ingress-nginx
  namespace: ingress-nginx
  labels:
    app: ingress-nginx
spec:
  externalIPs:    # &lt;-- Try to add this 2 lines
    - &lt;YOUR IP LAN or WAN&gt;
  selector:
    app: ingress-nginx
  type: NodePort
  ports:
    - name: http
      port: 80
      targetPort: http # &lt;-- Replace by port number: 80
    - name: https
      port: 443
      targetPort: https # &lt;-- Replace by port number: 443
</code></pre>
