nirnanaaa / kube-readiness

Controller to ensure external readiness conditions on pods (currently AWS ALB only)
2 stars 1 forks source link

check TG health after a pod event was received #4

Open nirnanaaa opened 5 years ago

nirnanaaa commented 5 years ago

after we receive a pod event we schedule that event into a queue (reference: https://github.com/kubernetes/ingress-gce/blob/1a4ff08d682abcb288425d2a84e64eae42f287ae/pkg/neg/readiness/reflector.go#L61) and poll the TG health endpoint once the aws api is ready.

We get the TG ARN from the pod/tg map.

Also if a pod / target is not ready (yet) we re-queue that event, so we are sure we receive an update at some point.