Closed 6547709 closed 2 months ago
Your observation is correct. Currently, the end-points are kept in an inactive state till the life of LB rule (in case they can become alive again). Once the LB service is deleted the end-points should be cleaned up as well.
Having said that, the original intention was to just keep the "non-existing" endpoints in an inactive state and not perform any probe related activities with it. Will double confirm if this is still the case or not.
Fixes were made to loxilb to address this. Request to check with latest loxilb docker image.
Thank you for your reply. I can understand the original design intention.
I just tested it and it works as expected, automatically cleans up the ep.
Problem description: When I reduced the number of replicas of the Deployment, kube-loxilb did not correctly clean up the EPs in the external LoxiLB. For example, after the number of replicas changed from 4 to 2, K8S had only 2 EPs, and Kube-Loxilb also updated the external LoxiLB (but did not delete the non-existent EPs), resulting in 2 EPs in the "nok" state in the external LoxiLB. K8S-Service:
K8S-Service-EP:
K8S-kube-loxilb-logs:
External-Loxilb-lb:
External-Loxilb-ep:
Kube-Loxilb-args:
Whoami-Service: