Closed tailrecur closed 2 years ago
@tailrecur, controller injects readiness gates during pod creation and includes the references to all of the matching target group bindings in the pod's namespace. In case of deleted tgb, the controller signals the corresponding condition as ready. In your case, could you verify whether there exist matching tgb in the pod's namespace with the reference to the non-existing target group ARN?
@kishorj I wasn't aware of the targetgroupbinding
custom resource.
As you said, deleting the addition tgb and rolling out a deployment fixed this issue. Thanks a lot for your help!
Describe the bug Pod readiness gate shows two target groups
Steps to reproduce Don't know
Expected outcome Pod readiness gate shows only one target group
Environment
Additional Context: I recently enabled Pod readiness gates in multiple EKS clusters to avoid downtime due to the delay in NLB target registration. In most clusters, it is working as expected.
However, in a few clusters, it somehow detects two target groups (one of which is correct and the other one does not exist). eg:
I'm not sure if this is due to some corrupted state and I don't know how to clear it.
Here's the relevant output from describing one of the pods:
I see this error in the load-balancer controller pod logs: