I'm developing a web application in NodeJS and I want to create multiple instances of the same application to deploy it in multiple subdomains of my main domain. I want each instance to have the same application but a different database for each. But I don't know how to do it.
I looked into it and it turns out that if I use Docker, Kubernetes and deploy to a cloud provider, that can solve my problem. The problem is that I know very little about Kubernetes and I have a question I can't answer!
Since each subdomain must point to the IP address of an instance of my application. How can I solve this problem? Do I have to create a cluster for each subdomain or is there a way to put them all in one? What do you think about this solution?
If you have a resource or another completely different solution, I'm open to anything. Thank you.