nginx-ingress-controller forever on "Scheduled for sync"

I have an ingress for my application:

apiVersion: kind: Ingress metadata: name: myapi-ingress annotations: "true" spec: ingressClassName: nginx rules: - host: mysite.com http: paths: - path: "/posts" pathType: Prefix backend: service: name: myservice port: number: 80 

When I run kubectl describe ing myapi-ingress, I can see that the ingress is stuck in sync state:

Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Sync 26m (x2 over 27m) nginx-ingress-controller Scheduled for sync 

PS. Before this happens, I tried to install another ingress for internal usage under another namespace and ingressclassname.

I'm getting 404 when I try to hit this endpoint. Nothing in the logs.

What is the problem?

2 Answers

The problem was the host name set on the Ingress

4

I had this issue when I created a new ingress with a secretName: of another existing ingress (which caused a conflict)

Once I changed the secretName:, of the new ingress to a unique name, and re-deployed the ingress, the cert was created.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like