<p>I have the following ingress...</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: core-ingress
  namespace: earth
  annotations:
    kubernetes.io/ingress.global-static-ip-name: &quot;core-proxy-static-ip&quot;
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  ingressClassName: core-ingress
  rules:
  - http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: core-proxy-service
            port:
              number: 80
</code></pre>
<p>I have used <code>kubectl exec</code> to make sure the service itself is running and listening on port 80 so I know <code>core-proxy-service</code> is working. When I try to install the ingress it never gets and IP and the events show nothings...</p>
<pre><code>Name:             core-ingress
Namespace:        earth
Address:          
Default backend:  default-http-backend:80 (10.109.128.78:8080)
Rules:
  Host        Path  Backends
  ----        ----  --------
  *           
              /   core-proxy-service:80 (10.109.128.132:80)
Annotations:  kubernetes.io/ingress.global-static-ip-name: core-proxy-static-ip
              nginx.ingress.kubernetes.io/rewrite-target: /
Events:       &lt;none&gt;
</code></pre>
<p>Since there are no events I figure something must have happened and that is why I am not getting an IP but how would I be able to debug to figure out what?</p>
<pre><code>NAMESPACE   NAME           CLASS          HOSTS   ADDRESS   PORTS   AGE
earth       core-ingress   core-ingress   *                 80      3m33s
</code></pre>
<h2>Update</h2>
<p>If I revert back to</p>
<pre><code>  defaultBackend:
    service:
      name: core-proxy-service
      port:
        number: 80
</code></pre>
<p>Everything works what am I missing?</p>

<p>Try something like :</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress-myservicea
  annotations:
    kubernetes.io/ingress.global-static-ip-name: &quot;core-proxy-static-ip&quot;
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  ingressClassName: nginx
  rules:
  - http:
      paths:
      - path: /
        backend:
          serviceName: core-proxy-service
          servicePort: 80
</code></pre>
<p>Ref doc : <a href="https://kubernetes.github.io/ingress-nginx/user-guide/basic-usage/" rel="nofollow noreferrer">https://kubernetes.github.io/ingress-nginx/user-guide/basic-usage/</a></p>
