Ingress responding with 'default backend - 404' when using GKE : <p>Using the latest Kubernetes version in GCP (<code>1.6.4</code>), I have the following <code>Ingress</code> definition:</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: myproject
  namespace: default
  annotations:
    ingress.kubernetes.io/rewrite-target: /
    kubernetes.io/ingress.class: "gce"
spec:
  rules:
  - host: staging.myproject.io
    http:
      paths:
      - path: /poller
        backend:
          serviceName: poller
          servicePort: 8080
</code></pre>

<p>Here is my service and deployment:</p>

<pre><code>apiVersion: v1
kind: Service
metadata:
  name: poller
  labels:
    app: poller
    tier: backend
    role: service
spec:
  type: NodePort
  selector:
    app: poller
    tier: backend
    role: service
  ports:
  - port: 8080
    targetPort: 8080
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: poller
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: poller
        tier: backend
        role: service
    spec:
      containers:
      - name: poller
        image: gcr.io/myproject-1364/poller:latest
        imagePullPolicy: Always
        env:
        - name: SPRING_PROFILES_ACTIVE
          value: staging
        - name: GET_HOSTS_FROM
          value: dns
        ports:
        - containerPort: 8080
</code></pre>

<p>In my <code>/etc/hosts</code> I have a line like:</p>

<pre><code>35.190.37.148 staging.myproject.io
</code></pre>

<p>However, I get <code>default backend - 404</code> when curling any endpoint on <code>staging.myproject.io</code>:</p>

<pre><code>$ curl staging.myproject.io/poller/cache/status
default backend - 404
</code></pre>

<p>I have the exact same configuration working locally inside Minikube, with the only difference being the domain (<code>dev.myproject.io</code>), and that works like a charm.</p>

<p>I have read and tried pretty much everything that I could find, including stuff from <a href="https://github.com/kubernetes/ingress/tree/master/controllers/nginx#running-multiple-ingress-controllers" rel="noreferrer">here</a> and <a href="https://github.com/kubernetes/ingress/blob/master/controllers/gce/BETA_LIMITATIONS.md#disabling-glbc" rel="noreferrer">here</a> and <a href="https://github.com/kubernetes/ingress/issues/349" rel="noreferrer">here</a>, but maybe I'm just missing something... any ideas?</p>
