Why Nginx controller is giving Scheduled for sync?

Viewed 1954

I have deployed AWS alb and nginx-controller. I'm using nginx to route a traffic to diff namespace. When i apply ingress resource and when i describe, I get

----    ------  ----               ----                      -------
  Normal  Sync    42m (x4 over 72m)  nginx-ingress-controller  Scheduled for sync
  Normal  Sync    42m (x4 over 72m)  nginx-ingress-controller  Scheduled for sync
  Normal  Sync    42m (x4 over 72m)  nginx-ingress-controller  Scheduled for sync
  Normal  Sync    42m (x4 over 72m)  nginx-ingress-controller  Scheduled for sync

I am unable to hit the host. But its working well with other hosts.

kubectl describe ing XXXXX

Name:             promethues-ingress-dev
Namespace:        monitoring
Address:          172.20.223.123
Default backend:  default-http-backend:80 (<error: endpoints "default-http-backend" not found>)
Rules:
  Host                     Path  Backends
  ----                     ----  --------
  dashboard.dev.xxxx.ai
                           /*   kube-prom-stack-dev-grafana:80 (10.0.1.189:3000)
Annotations:               kubernetes.io/ingress.class: nginx
                           nginx.ingress.kubernetes.io/rewrite-target: /
Events:
  Type    Reason  Age                From                      Message
  ----    ------  ----               ----                      -------
  Normal  Sync    42m (x4 over 72m)  nginx-ingress-controller  Scheduled for sync
  Normal  Sync    42m (x4 over 72m)  nginx-ingress-controller  Scheduled for sync
  Normal  Sync    42m (x4 over 72m)  nginx-ingress-controller  Scheduled for sync
  Normal  Sync    42m (x4 over 72m)  nginx-ingress-controller  Scheduled for sync
1 Answers

In my case, after upgrading Nginx to v1, I ran into an issue with Nginx-controller failing to establish a leader, due to a change in name of the leader election configmap.

https://github.com/kubernetes/ingress-nginx/issues/7632.

Make sure if you update your Nginx, you also update associated role permissions.

Related