aws-load-balancer-controller
aws-load-balancer-controller copied to clipboard
Controller not cleaning up old resources
Describe the bug
I initially created 3 ingresses with 3 ALBs as I was unaware I could use the group.name
annotation to share 1 ALB. I am now combing all ingresses to use the same group to save money. I now have 1 ALB that works as expected for all 3 ingresses. However, my old ALBs, TargetGroups, SecurityGroups and TargetGroupBinding(k8s) are still there. They technically aren't being used bc DNS doesn't point to them, but I would expect those to get cleaned up. Not sure if I did something wrong or am missing a setting. I do not see any logs in the controller pod indicating it's even trying to cleanup these resources. I thought maybe it could be a permissions issue, but I think I'd see some type of error in the logs. Additionally, I don't see any k8s events indication issues like failure to delete the TargetGroupBinding, I don't think it's even trying to delete it. Thanks for the help.
Steps to reproduce
- create 2 ingresses and let controller create all needed resources
- edit each ingress to with the
group.name
annotation to be in the same group - the old deprecated ALBs are still there.
Expected outcome Only the group ALB exist and deprecated ALBs, TargetGroups, SecurityGroups and TargetGroupBindings are cleaned up.
Environment
- AWS Load Balancer controller version 2.8
- Kubernetes version 1.29
- Using EKS (yes/no), if so version? yes, eks.7
Additional Context: Deploying controller via helm. v1.8.1