'How to maintain the lb dns in eks

I have connected AWS API Gateway to NLB in my eks using VPC Links. I have around 3 microservices which are served with 3 NLBs(private to VPC) respectively.

Due to cost reduction I am planning to deploy the microservices only during for 8 hrs during the day. I am planning to do this via a jenkins job

I have an issue of creating an attaching the api gateway vpc links manually. Is there any method where we can uninstall and reinstall the eks deployment but get the same dns for nlb?

or Do we have any method to schedule deployment to sleep for specified time?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source