We wanted to achieve multi tenancy where we want to run single EKS POD in kubernetes that will connect to multiple RDS based on the URL.
We have made changes in our application that will access the database based on the http url. For example if I'll access https://walmart.com then our application will access the walmart RDS.
Our current structure is setup in a way where we run independent POD in EKS kubernetes for each client and separate RDS instance. We have setup jenkins pipeline and terraform script which register new DNS in Route53 and run a POD for each new client.
Current Architecture:

We want to run single POD that will connect with each client's database based on the DNS being accessed in the URL. Then if we want to release a new feature then we will only have to update one POD deployment, then our all the clients will have the same app version.
Required architecture:

if any one knows how we can achieve this then that will help us.
Appreciated.
I have tried couple of articles but that is not enough. Those doesn't full fill the requirement.
It is achievable. But thing here is why? There are many down sides of this solution and few pro sides.
Answer:
few thoughts: