Example app showing how to do multi tenancy in .Net Core using multiple databases. When you have limited clients and a legacy system this is a workable approach. Ultimately you would want to move to a tenanted data store per micro service.
- Compile and create a container with the API
- Sets up a K8 cluster using
kind- Deploy the API with 2 replicas
- Deploys multiple MySQL DB's with their own init.sql script
- Each tenant db will have a hello table with sayings of the form "Hello Tenant{X}"
- Runs a curl GET against each tenant.
- Destroys the cluster.
This was tested on a laptop with 12 cores, 32GB memory and 20 tenant database's. Your pods may get killed of when you specify too many.
- kubectl
- kind
- docker
