<p>I have an ingress for my application:</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: myapi-ingress
  annotations:
    nginx.ingress.kubernetes.io/ssl-redirect: &quot;true&quot;
spec:
  ingressClassName: nginx
  rules:
  - host: mysite.com
    http:
      paths:
      - path: &quot;/posts&quot;
        pathType: Prefix
        backend:
          service:
            name: myservice
            port:
              number: 80
</code></pre>
<p>When I run <code>kubectl describe ing myapi-ingress</code>, I can see that the ingress is stuck in sync state:</p>
<pre><code>Events:
  Type    Reason  Age                From                      Message
  ----    ------  ----               ----                      -------
  Normal  Sync    26m (x2 over 27m)  nginx-ingress-controller  Scheduled for sync
</code></pre>
<p>PS. Before this happens, I tried to install another ingress for internal usage under another namespace and ingressclassname.</p>
<p>I'm getting 404 when I try to hit this endpoint. Nothing in the logs.</p>
<p>What is the problem?</p>

<p>The problem was the host name set on the Ingress</p>
