kuberneteseventsingress-nginx

kubernetes/ingress-nginx creates huge number of sync events


I noticed that during the ingress-nginx pod creation/termination, there is a huge number of events created. Further "investigation" showed that each nginx pod creates

42s         Normal    Sync     ingress/name    Scheduled for sync 

event for each ingress objects.

For perspective, with some approximate imaginary numbers:

I could not find any mentions about it in the docs/ingress-nginx issues

The question: is it expected behavior?


Solution

  • This is expected behavior.

    As we can see here, this is an informer, which creates the sync event for each valid ingress. In turn, this informer is added to the store on each ingress-controller pod, see more here.