kubernetes/ingress-nginx 创建大量同步事件

kubernetes/ingress-nginx creates huge number of sync events

我注意到在 ingress-nginx pod creation/termination 期间,创建了大量事件。进一步的“调查”显示每个 nginx pod 创建

42s         Normal    Sync     ingress/name    Scheduled for sync 

每个入口对象的事件。

为了透视,用一些近似的虚数:

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

问题:这是预期的行为吗?

这是预期的行为。

如我们所见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