For routing traffic from external load balancer to internal load balance in a AWS EKS cluster we are using NGINX in cluster VPC
we are using path based routing in nginx, things work normally initially however after few days performance of the system becomes slow and eventually login doesn't work. with some debugging we are at conclusion that internal ALB IP's change after some time but nginx still points to old IP's
we tried implementing solutions mentioned in below links, however with setting variable for proxy_pass we dont even get login page
https://medium.com/driven-by-code/dynamic-dns-resolution-in-nginx-22133c22e3ab
https://www.nginx.com/blog/dns-service-discovery-nginx-plus/
we need help to get past this problem