nginx ingress controller question about use of informers

ayma nginx-forum at forum.nginx.org
Wed Jun 12 14:41:42 UTC 2019


Looking at the nginx ingress controller code had a question about the
design.  See that there is a function, getPodsForIngressBackend, (
https://github.com/nginxinc/kubernetes-ingress/blob/master/internal/k8s/controller.go#L15860
).  It looks like in this function a call is made to kube api to grab all
the backend pods for a service.  I was wondering why not use the cached
information from the informer?

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,284517,284517#msg-284517



More information about the nginx mailing list