mysql router in kubernetes

212 views Asked by At

There are few deployments in different namespaces in our application. Mysql is outside of the cluster and planning to use mysql router. Deployed mysql router as a service and the deployments are able to connect using kubernetes service URL. The question is should mysql router be deployed as sidecar (possible to??) to each of the deployments or run as another deployment within the cluster? If it runs as the separate deployment how the router deployment will handle the increase in requests if the app deployments are scaled up?

1

There are 1 answers

0
Harsh Manvar On

You can deploy the Mysql router as deployment and service.

So when if your application scale up you can also scale the deployment with HPA based on the resource you are looking CPU/Memory/Requests etc.